v8config.h | v8config.h | |||
---|---|---|---|---|
skipping to change at line 137 | skipping to change at line 137 | |||
#elif defined(__QNXNTO__) | #elif defined(__QNXNTO__) | |||
# define V8_OS_POSIX 1 | # define V8_OS_POSIX 1 | |||
# define V8_OS_QNX 1 | # define V8_OS_QNX 1 | |||
#elif defined(_WIN32) | #elif defined(_WIN32) | |||
# define V8_OS_WIN 1 | # define V8_OS_WIN 1 | |||
#endif | #endif | |||
// ------------------------------------------------------------------------ ----- | // ------------------------------------------------------------------------ ----- | |||
// C library detection | // C library detection | |||
// | // | |||
// V8_LIBC_MSVCRT - MSVC libc | ||||
// V8_LIBC_BIONIC - Bionic libc | // V8_LIBC_BIONIC - Bionic libc | |||
// V8_LIBC_BSD - BSD libc derivate | // V8_LIBC_BSD - BSD libc derivate | |||
// V8_LIBC_GLIBC - GNU C library | // V8_LIBC_GLIBC - GNU C library | |||
// V8_LIBC_UCLIBC - uClibc | // V8_LIBC_UCLIBC - uClibc | |||
// | // | |||
// Note that testing for libc must be done using #if not #ifdef. For exampl e, | // Note that testing for libc must be done using #if not #ifdef. For exampl e, | |||
// to test for the GNU C library, use: | // to test for the GNU C library, use: | |||
// #if V8_LIBC_GLIBC | // #if V8_LIBC_GLIBC | |||
// ... | // ... | |||
// #endif | // #endif | |||
#if defined(__BIONIC__) | #if defined (_MSC_VER) | |||
# define V8_LIBC_MSVCRT 1 | ||||
#elif defined(__BIONIC__) | ||||
# define V8_LIBC_BIONIC 1 | # define V8_LIBC_BIONIC 1 | |||
# define V8_LIBC_BSD 1 | # define V8_LIBC_BSD 1 | |||
#elif defined(__UCLIBC__) | #elif defined(__UCLIBC__) | |||
# define V8_LIBC_UCLIBC 1 | # define V8_LIBC_UCLIBC 1 | |||
#elif defined(__GLIBC__) || defined(__GNU_LIBRARY__) | #elif defined(__GLIBC__) || defined(__GNU_LIBRARY__) | |||
# define V8_LIBC_GLIBC 1 | # define V8_LIBC_GLIBC 1 | |||
#else | #else | |||
# define V8_LIBC_BSD V8_OS_BSD | # define V8_LIBC_BSD V8_OS_BSD | |||
#endif | #endif | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 4 lines changed or added | |||