Fix int8_t redefinition errors in VC2010
This was SVN commit r8635.
This commit is contained in:
parent
f286ce0b13
commit
404456ee8e
@ -34,7 +34,7 @@
|
|||||||
// <inttypes.h>
|
// <inttypes.h>
|
||||||
//
|
//
|
||||||
|
|
||||||
typedef __int8 int8_t;
|
typedef signed char int8_t;
|
||||||
typedef short int16_t;
|
typedef short int16_t;
|
||||||
|
|
||||||
// already defined by MinGW
|
// already defined by MinGW
|
||||||
|
@ -27,6 +27,10 @@
|
|||||||
// non-struct type instead
|
// non-struct type instead
|
||||||
# define JS_NO_JSVAL_JSID_STRUCT_TYPES
|
# define JS_NO_JSVAL_JSID_STRUCT_TYPES
|
||||||
|
|
||||||
|
// Make JS think the int8_t etc types are defined, since wposix_types.h emulates
|
||||||
|
// the ones that are needed and this avoids conflicting definitions
|
||||||
|
# define JS_SYS_TYPES_H_DEFINES_EXACT_SIZE_TYPES
|
||||||
|
|
||||||
#else
|
#else
|
||||||
# define XP_UNIX
|
# define XP_UNIX
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user