Bug 537784: [AIX] Build bustage in js/src/jsstdint.h r=ted

This commit is contained in:
Uli Link 2010-03-06 12:59:41 -05:00
Родитель 65cceb90ab
Коммит f104980e96
4 изменённых файлов: 12 добавлений и 2 удалений

Просмотреть файл

@ -1596,6 +1596,7 @@ case "$target" in
if test "$COMPILE_ENVIRONMENT"; then if test "$COMPILE_ENVIRONMENT"; then
AC_CHECK_HEADERS(sys/inttypes.h) AC_CHECK_HEADERS(sys/inttypes.h)
fi fi
AC_DEFINE(JS_SYS_TYPES_H_DEFINES_EXACT_SIZE_TYPES)
AC_DEFINE(NSCAP_DISABLE_DEBUG_PTR_TYPES) AC_DEFINE(NSCAP_DISABLE_DEBUG_PTR_TYPES)
;; ;;

Просмотреть файл

@ -56,6 +56,9 @@
useable. See jstypes.h and jsstdint.h. */ useable. See jstypes.h and jsstdint.h. */
#undef JS_HAVE_STDINT_H #undef JS_HAVE_STDINT_H
/* Define to 1 if the <sys/types.h> defines int8_t, etc. */
#undef JS_SYS_TYPES_H_DEFINES_EXACT_SIZE_TYPES
/* Define to 1 if the N-byte __intN types are defined by the /* Define to 1 if the N-byte __intN types are defined by the
compiler. */ compiler. */
#undef JS_HAVE___INTN #undef JS_HAVE___INTN

Просмотреть файл

@ -67,9 +67,14 @@
* <stdint.h> itself is available. * <stdint.h> itself is available.
*/ */
#if defined(JS_HAVE_STDINT_H) #if defined(JS_HAVE_STDINT_H) || \
defined(JS_SYS_TYPES_H_DEFINES_EXACT_SIZE_TYPES)
#if defined(JS_HAVE_STDINT_H)
#include <stdint.h> #include <stdint.h>
#else
#include <sys/types.h>
#endif
typedef int8_t JSInt8; typedef int8_t JSInt8;
typedef int16_t JSInt16; typedef int16_t JSInt16;

Просмотреть файл

@ -58,7 +58,8 @@
/* If we have a working stdint.h, then jsinttypes.h has already /* If we have a working stdint.h, then jsinttypes.h has already
defined the standard integer types. Otherwise, define the standard defined the standard integer types. Otherwise, define the standard
names in terms of the 'JS' types. */ names in terms of the 'JS' types. */
#if ! defined(JS_HAVE_STDINT_H) #if ! defined(JS_HAVE_STDINT_H) && \
! defined(JS_SYS_TYPES_H_DEFINES_EXACT_SIZE_TYPES)
typedef JSInt8 int8_t; typedef JSInt8 int8_t;
typedef JSInt16 int16_t; typedef JSInt16 int16_t;