Fix int8_t redefinition errors in VC2010

This was SVN commit r8635.
This commit is contained in:
Ykkrosh 2010-11-17 03:02:04 +00:00
parent f286ce0b13
commit 404456ee8e
2 changed files with 5 additions and 1 deletions

View File

@ -34,7 +34,7 @@
// <inttypes.h>
//
typedef __int8 int8_t;
typedef signed char int8_t;
typedef short int16_t;
// already defined by MinGW

View File

@ -27,6 +27,10 @@
// non-struct type instead
# 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
# define XP_UNIX
#endif