|
|
#ifndef _STLP_INTERNAL_CSTDLIB | #ifndef _STLP_INTERNAL_CSTDLIB |
#define _STLP_INTERNAL_CSTDLIB | #define _STLP_INTERNAL_CSTDLIB |
| |
|
/* Work around inconsistent definition of _GLIBCXX_USE_C99 across arches; on |
|
* these arches std::llabs is therefore not available. |
|
* |
|
* See http://bugs.debian.org/443234 |
|
*/ |
|
#ifndef _GLIBCXX_USE_C99 |
|
#define _GLIBCXX_USE_C99 1 |
|
#define _HACK_CXX_USE_C99 1 |
|
#endif |
|
|
#if defined (_STLP_USE_NEW_C_HEADERS) | #if defined (_STLP_USE_NEW_C_HEADERS) |
# include _STLP_NATIVE_CPP_C_HEADER(cstdlib) | # include _STLP_NATIVE_CPP_C_HEADER(cstdlib) |
#else | #else |
# include <stdlib.h> | # include <stdlib.h> |
#endif | #endif |
| |
|
#ifdef _HACK_CXX_USE_C99 |
|
#undef _GLIBCXX_USE_C99 |
|
#undef _HACK_CXX_USE_C99 |
|
#endif |
|
|
#if defined (__BORLANDC__) | #if defined (__BORLANDC__) |
/* Borland process.h header do not bring anything here and is just included | /* Borland process.h header do not bring anything here and is just included |
* in order to avoid inclusion later. This header cannot be included later | * in order to avoid inclusion later. This header cannot be included later |
|
|
* so cstdlib has to be included first. | * so cstdlib has to be included first. |
*/ | */ |
#if defined (__GNUC__) && defined (_STLP_USE_NEW_C_HEADERS) | #if defined (__GNUC__) && defined (_STLP_USE_NEW_C_HEADERS) |
|
/* See http://bugs.debian.org/443234 */ |
|
# ifndef _GLIBCXX_USE_C99 |
|
# define _GLIBCXX_USE_C99 1 |
|
# define _HACK_CXX_USE_C99 1 |
|
# endif |
# include _STLP_NATIVE_CPP_C_HEADER(cstdlib) | # include _STLP_NATIVE_CPP_C_HEADER(cstdlib) |
|
# ifdef _HACK_CXX_USE_C99 |
|
# undef _GLIBCXX_USE_C99 |
|
# undef _HACK_CXX_USE_C99 |
|
# endif |
#endif | #endif |
| |
#if defined (_STLP_USE_NEW_C_HEADERS) | #if defined (_STLP_USE_NEW_C_HEADERS) |