build/stlport/android-mozilla-config.patch

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:28d140fe6fa4
1 diff --git a/stlport/stl/config/_android.h b/stlport/stl/config/_android.h
2 --- a/stlport/stl/config/_android.h
3 +++ b/stlport/stl/config/_android.h
4 @@ -10,18 +10,18 @@
5 #define _PTHREADS
6
7 // Don't have native <cplusplus> headers
8 #define _STLP_HAS_NO_NEW_C_HEADERS 1
9
10 // Use unix for streams
11 #define _STLP_USE_UNIX_IO 1
12
13 -// We do have rtti support now through GAbi++
14 -#undef _STLP_NO_RTTI
15 +// We don't want rtti support
16 +#define _STLP_NO_RTTI 1
17
18 // C library is in the global namespace.
19 #define _STLP_VENDOR_GLOBAL_CSTD 1
20
21 // Don't have underlying local support.
22 #undef _STLP_REAL_LOCALE_IMPLEMENTED
23
24 // No pthread_spinlock_t in Android
25 @@ -32,48 +32,42 @@
26
27 // Little endian platform.
28 #define _STLP_LITTLE_ENDIAN 1
29
30 // No <exception> headers
31 #undef _STLP_NO_EXCEPTION_HEADER
32
33 // No throwing exceptions
34 -#undef _STLP_NO_EXCEPTIONS
35 -
36 +#define _STLP_NO_EXCEPTIONS 1
37 +#define _STLP_NO_EXCEPTION_HEADER 1
38
39 // No need to define our own namespace
40 #define _STLP_NO_OWN_NAMESPACE 1
41
42 // Use __new_alloc instead of __node_alloc, so we don't need static functions.
43 #define _STLP_USE_SIMPLE_NODE_ALLOC 1
44
45 // Don't use extern versions of range errors, so we don't need to
46 // compile as a library.
47 #define _STLP_USE_NO_EXTERN_RANGE_ERRORS 1
48
49 // The system math library doesn't have long double variants, e.g
50 // sinl, cosl, etc
51 #define _STLP_NO_VENDOR_MATH_L 1
52
53 -// Define how to include our native headers.
54 -#define _STLP_NATIVE_HEADER(header) <usr/include/header>
55 -#define _STLP_NATIVE_C_HEADER(header) <../include/header>
56 -#define _STLP_NATIVE_CPP_C_HEADER(header) <../../gabi++/include/header>
57 -#define _STLP_NATIVE_CPP_RUNTIME_HEADER(header) <../../gabi++/include/header>
58 -#define _STLP_NATIVE_OLD_STREAMS_HEADER(header) <usr/include/header>
59 -
60 // Include most of the gcc settings.
61 #include <stl/config/_gcc.h>
62
63 // Do not use glibc, Android is missing some things.
64 #undef _STLP_USE_GLIBC
65
66 // No exceptions.
67 -#undef _STLP_NO_UNCAUGHT_EXCEPT_SUPPORT
68 -#undef _STLP_NO_UNEXPECTED_EXCEPT_SUPPORT
69 +#define _STLP_NO_UNCAUGHT_EXCEPT_SUPPORT 1
70 +#define _STLP_NO_UNEXPECTED_EXCEPT_SUPPORT 1
71
72 -#ifndef _ANDROID_NDK_BLAZE_
73 -// Android does have include_next but it doesn't work well in our build system.
74 -#undef _STLP_HAS_INCLUDE_NEXT
75 -#endif
76 +#define _STLP_HAS_INCLUDE_NEXT 1
77 +
78 +// Use operator new instead of stlport own node allocator
79 +#undef _STLP_USE_NEWALLOC
80 +#define _STLP_USE_NEWALLOC 1
81
82 #endif /* __stl_config__android_h */

mercurial