SCM

SCM Repository

[aix] View of /patches/aix_R210_tre.patch
ViewVC logotype

View of /patches/aix_R210_tre.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7 - (download) (as text) (annotate)
Tue Feb 23 18:14:57 2010 UTC (7 years, 8 months ago) by stefan7th
File size: 695 byte(s)
TRE patch added and  install script modified
diff -ruN R-2.10.1.orig/src/extra/tre/tre-internal.h R-2.10.1/src/extra/tre/tre-internal.h
--- R-2.10.1.orig/src/extra/tre/tre-internal.h	2009-09-28 07:05:13.000000000 +0900
+++ R-2.10.1/src/extra/tre/tre-internal.h	2010-02-22 18:27:47.000000000 +0900
@@ -48,7 +48,17 @@
 
 /* Wide characters. */
 typedef wint_t tre_cint_t;
+/*
+  WCHAR_MAX not possible to function for UINT32_MAX on AIX.
+  AIX 64bit         WCHAR_MAX = UINT32_MAX
+  Solaris-sparcv9   WCHAR_MAX = INT32_MAX
+  Linux amd64       WCHAR_MAX = INT32_MAX
+*/
+#if ( WCHAR_MAX == UINT32_MAX )
+#define TRE_CHAR_MAX INT32_MAX
+#else
 #define TRE_CHAR_MAX WCHAR_MAX
+#endif
 
 #ifdef TRE_MULTIBYTE
 #define TRE_MB_CUR_MAX MB_CUR_MAX

R-Forge@R-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business University of Wisconsin - Madison Powered By FusionForge