mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-31 14:39:55 +01:00
Use <stdint.h> shipped with Visual Studio 2010 and later
Visual Studio didn’t have <stdint.h> until 2010, therefore we had a bunch of typedefs for int8_t, int16_t and the likes in "stdint.hpp". This patch limits these typedefs to Visual Studio versions older than 2010 and uses compiler-shipped <stdint.h> on 2010 and newer.
This commit is contained in:
parent
ff264cb044
commit
9056c13e1e
@ -27,7 +27,7 @@
|
||||
|
||||
#include <inttypes.h>
|
||||
|
||||
#elif defined _MSC_VER
|
||||
#elif defined _MSC_VER && _MSC_VER < 1600
|
||||
|
||||
#ifndef int8_t
|
||||
typedef __int8 int8_t;
|
||||
|
Loading…
x
Reference in New Issue
Block a user