diff options
Diffstat (limited to 'WebKit/android/stlport/stl/config/_android.h')
| -rw-r--r-- | WebKit/android/stlport/stl/config/_android.h | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/WebKit/android/stlport/stl/config/_android.h b/WebKit/android/stlport/stl/config/_android.h new file mode 100644 index 0000000..1a954bf --- /dev/null +++ b/WebKit/android/stlport/stl/config/_android.h @@ -0,0 +1,79 @@ +#ifndef __stl_config__android_h +#define __stl_config__android_h + +#define _STLP_PLATFORM "Android" + +// The Android C library is mostly glibc-like +#define _STLP_USE_GLIBC 1 + +// ...and Unix-like. +#define _STLP_UNIX 1 + +// Have pthreads support. +#define _PTHREADS + +// Don't have native <cplusplus> headers +#define _STLP_HAS_NO_NEW_C_HEADERS 1 + +// Don't use wchar.h etc +#define _STLP_NO_WCHAR_T 1 + +// Don't have (working) native wide character support. +#define _STLP_NO_NATIVE_WIDE_FUNCTIONS 1 + +// Don't use mbstate_t, define our own. +#define _STLP_NO_NATIVE_MBSTATE_T 1 + +// No (proper) wide stream support in Android +#define _STLP_NO_NATIVE_WIDE_STREAMS 1 + +// C library is in the global namespace. +#define _STLP_VENDOR_GLOBAL_CSTD 1 + +// Don't have underlying local support. +#undef _STLP_REAL_LOCALE_IMPLEMENTED + +// No pthread_spinlock_t in Android +#define _STLP_DONT_USE_PTHREAD_SPINLOCK 1 + +// Do not enable thread support +#define _NOTHREADS 1 + +// Little endian platform. +#define _STLP_LITTLE_ENDIAN 1 + +// No <exception> headers +#define _STLP_NO_EXCEPTION_HEADER 1 + +// No throwing exceptions +#define _STLP_NO_EXCEPTIONS 1 + +// Disable all iostreams +#define _STLP_NO_IOSTREAMS 1 + +// No need to define our own namespace +#define _STLP_NO_OWN_NAMESPACE 1 + +// Need this to define STLport's own bad_alloc class (which won't be +// thrown in any case) +#define _STLP_NEW_DONT_THROW_BAD_ALLOC 1 + +// Use __new_alloc instead of __node_alloc, so we don't need static functions. +#define _STLP_USE_SIMPLE_NODE_ALLOC 1 + +// Don't use extern versions of range errors, so we don't need to +// compile as a library. +#define _STLP_USE_NO_EXTERN_RANGE_ERRORS 1 + +// The system math library doesn't have long double variants, e.g +// sinl, cosl, etc +#define _STLP_NO_VENDOR_MATH_L 1 + +// Define how to include our native headers. +#define _STLP_NATIVE_HEADER(header) <libstdc++/include/header> +#define _STLP_NATIVE_C_HEADER(header) <../include/header> +#define _STLP_NATIVE_CPP_C_HEADER(header) <libstdc++/include/header> +#define _STLP_NATIVE_OLD_STREAMS_HEADER(header) <libstdc++/include/header> +#define _STLP_NATIVE_CPP_RUNTIME_HEADER(header) <libstdc++/include/header> + +#endif /* __stl_config__android_h */ |
