blob: 68fa98b9737d37f10f084df0d3d6d231d7fecf72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
--- STLport-5.1.5.orig/stlport/stl/_cstdlib.h
+++ STLport-5.1.5/stlport/stl/_cstdlib.h
@@ -16,12 +16,27 @@
#ifndef _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)
# include _STLP_NATIVE_CPP_C_HEADER(cstdlib)
#else
# include <stdlib.h>
#endif
+#ifdef _HACK_CXX_USE_C99
+#undef _GLIBCXX_USE_C99
+#undef _HACK_CXX_USE_C99
+#endif
+
#if defined (__BORLANDC__)
/* 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
--- STLport-5.1.5.orig/stlport/stl/_cmath.h
+++ STLport-5.1.5/stlport/stl/_cmath.h
@@ -21,7 +21,16 @@
* so cstdlib has to be included first.
*/
#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)
+# ifdef _HACK_CXX_USE_C99
+# undef _GLIBCXX_USE_C99
+# undef _HACK_CXX_USE_C99
+# endif
#endif
#if defined (_STLP_USE_NEW_C_HEADERS)
|