mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 17:06:33 +03:00
Defined inttypes.h for older MSVC compilers
Older MSVC compilers do not support the C99 standard
This commit is contained in:
parent
d52e9100d2
commit
7493ea24f2
|
@ -139,6 +139,17 @@ static int pthread_mutex_init(pthread_mutex_t *mutex, void* fake)
|
|||
: ((_fpclass(x) == _FPCLASS_NINF) ? -1 : 0))
|
||||
#endif
|
||||
#define strcasecmp(x, y) lstrcmpi(x, y)
|
||||
|
||||
#if _MSC_VER <= 1600
|
||||
typedef __int8 int8_t;
|
||||
typedef __int16 int16_t;
|
||||
typedef __int32 int32_t;
|
||||
typedef __int64 int64_t;
|
||||
typedef unsigned __int8 uint8_t;
|
||||
typedef unsigned __int16 uint16_t;
|
||||
typedef unsigned __int32 uint32_t;
|
||||
typedef unsigned __int64 uint64_t;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "win32_support.h"
|
||||
|
|
Loading…
Reference in New Issue
Block a user