]> git.pld-linux.org Git - packages/STLport.git/commitdiff
- fix for "size of array '__static_assert' is negative" on alpha
authorhawk <hawk@pld-linux.org>
Sat, 17 Mar 2007 13:31:04 +0000 (13:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    STLport-alpha.patch -> 1.1.2.1

STLport-alpha.patch [new file with mode: 0644]

diff --git a/STLport-alpha.patch b/STLport-alpha.patch
new file mode 100644 (file)
index 0000000..a4f712e
--- /dev/null
@@ -0,0 +1,22 @@
+diff -ur STLport-5.1.2.orig/stlport/stl/_cwchar.h STLport-5.1.2/stlport/stl/_cwchar.h
+--- STLport-5.1.2.orig/stlport/stl/_cwchar.h   2006-11-13 21:27:25.000000000 +0100
++++ STLport-5.1.2/stlport/stl/_cwchar.h        2007-03-17 14:27:18.000000000 +0100
+@@ -105,18 +105,6 @@
+ #        define WCHAR_MAX ((wchar_t)~0)
+ #      endif
+ #    endif
+-#    if defined (__GNUC__) && defined (__alpha__)
+-/* Definition of WCHAR_MIN and MAX are wrong for alpha platform
+- * as gcc consider wchar_t as an unsigned type. Static assertion are
+- * here to check that a future alpha SDK or a future gcc won't change the
+- * situation making this workaround useless.
+- */
+-_STLP_STATIC_ASSERT(((wchar_t)-1 > 0) && (WCHAR_MIN < 0))
+-#      undef WCHAR_MIN
+-#      define WCHAR_MIN 0
+-#      undef WCHAR_MAX
+-#      define WCHAR_MAX ((wchar_t)~0)
+-#    endif
+ #    if defined(__HP_aCC) && (__HP_aCC >= 60000)
+ /* Starting with B.11.31, HP-UX/ia64 provides C99-compliant definitions
+  * of WCHAR_MIN/MAX macros without having to define
This page took 0.068175 seconds and 4 git commands to generate.