Blame SOURCES/opensp-multilib.patch

53f1a2
--- OpenSP-1.5.2/configure.in.multilib	2005-12-23 14:15:21.000000000 +0000
53f1a2
+++ OpenSP-1.5.2/configure.in	2006-06-13 13:36:49.000000000 +0100
53f1a2
@@ -90,7 +90,7 @@
53f1a2
 #define SP_SIZEOF_BOOL_1
53f1a2
 #endif
53f1a2
 
53f1a2
-#if (SIZEOF_WCHAR_T == SIZEOF_UNSIGNED_SHORT)
53f1a2
+#if (WCHAR_MAX == SHRT_MAX)
53f1a2
 #define SP_WCHAR_T_USHORT
53f1a2
 #endif
53f1a2
 
53f1a2
--- OpenSP-1.5.2/lib/parser_inst.cxx.multilib	2005-07-21 16:33:41.000000000 +0100
53f1a2
+++ OpenSP-1.5.2/lib/parser_inst.cxx	2006-06-13 13:36:49.000000000 +0100
53f1a2
@@ -9,6 +9,7 @@
53f1a2
 // Copyright (c) 1994 James Clark
53f1a2
 // See the file COPYING for copying permission.
53f1a2
 
53f1a2
+#include <limits.h>
53f1a2
 #include "splib.h"
53f1a2
 
53f1a2
 #ifdef SP_MANUAL_INST
53f1a2
@@ -1338,7 +1339,7 @@
53f1a2
 #endif
53f1a2
 #endif
53f1a2
  // we really just want to test if size_t == unsigned int
53f1a2
-#if !defined(SIZEOF_SIZE_T) || !defined(SIZEOF_UNSIGNED_INT) || (SIZEOF_SIZE_T != SIZEOF_UNSIGNED_INT)
53f1a2
+#if INT_MAX != SSIZE_MAX
53f1a2
 #ifdef __DECCXX
53f1a2
 #pragma define_template Vector<unsigned int>
53f1a2
 #else
53f1a2
--- OpenSP-1.5.2/lib/parser_inst.m4.multilib	2005-05-14 10:17:35.000000000 +0100
53f1a2
+++ OpenSP-1.5.2/lib/parser_inst.m4	2006-06-13 13:36:49.000000000 +0100
53f1a2
@@ -1,6 +1,7 @@
53f1a2
 // Copyright (c) 1994 James Clark
53f1a2
 // See the file COPYING for copying permission.
53f1a2
 
53f1a2
+#include <limits.h>
53f1a2
 #include "splib.h"
53f1a2
 
53f1a2
 #ifdef SP_MANUAL_INST
53f1a2
@@ -166,7 +167,7 @@
53f1a2
 __instantiate(Vector<LeafContentToken*>)
53f1a2
 __instantiate(Vector<size_t>)
53f1a2
  // we really just want to test if size_t == unsigned int
53f1a2
-#if !defined(SIZEOF_SIZE_T) || !defined(SIZEOF_UNSIGNED_INT) || (SIZEOF_SIZE_T != SIZEOF_UNSIGNED_INT)
53f1a2
+#if INT_MAX != SSIZE_MAX
53f1a2
 __instantiate(Vector<unsigned int>)
53f1a2
 #endif
53f1a2
 
53f1a2
--- OpenSP-1.5.2/config.h.in.multilib	2005-11-05 09:43:42.000000000 +0000
53f1a2
+++ OpenSP-1.5.2/config.h.in	2006-06-13 13:41:45.000000000 +0100
53f1a2
@@ -1,5 +1,7 @@
53f1a2
 /* config.h.in.  Generated from configure.in by autoheader.  */
53f1a2
 
53f1a2
+#include <limits.h>
53f1a2
+
53f1a2
 /* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
53f1a2
    systems. This function is required for `alloca.c' support on those systems.
53f1a2
    */
53f1a2
@@ -333,22 +335,6 @@
53f1a2
 /* The size of a `bool', as computed by sizeof. */
53f1a2
 #undef SIZEOF_BOOL
53f1a2
 
53f1a2
-/* The size of a `size_t', as computed by sizeof. */
53f1a2
-#undef SIZEOF_SIZE_T
53f1a2
-
53f1a2
-/* The size of a `unsigned int', as computed by sizeof. */
53f1a2
-#undef SIZEOF_UNSIGNED_INT
53f1a2
-
53f1a2
-/* The size of a `unsigned short', as computed by sizeof. */
53f1a2
-#undef SIZEOF_UNSIGNED_SHORT
53f1a2
-
53f1a2
-/* The size of a `wchar_t', as computed by sizeof. */
53f1a2
-#undef SIZEOF_WCHAR_T
53f1a2
-
53f1a2
-/* Define as the maximum value of type 'size_t', if the system doesn't define
53f1a2
-   it. */
53f1a2
-#undef SIZE_MAX
53f1a2
-
53f1a2
 /* define this if h_errno should be declared extern int */
53f1a2
 #undef SP_DECLARE_H_ERRNO
53f1a2
 
53f1a2
@@ -503,7 +489,7 @@
53f1a2
 #define SP_SIZEOF_BOOL_1
53f1a2
 #endif
53f1a2
 
53f1a2
-#if (SIZEOF_WCHAR_T == SIZEOF_UNSIGNED_SHORT)
53f1a2
+#if (WCHAR_MAX == SHRT_MAX)
53f1a2
 #define SP_WCHAR_T_USHORT
53f1a2
 #endif
53f1a2