]> git.saurik.com Git - wxWidgets.git/commitdiff
More installation instruction tweaks
authorJulian Smart <julian@anthemion.co.uk>
Tue, 30 Mar 2004 16:42:18 +0000 (16:42 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 30 Mar 2004 16:42:18 +0000 (16:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/mac/ansi.diff [new file with mode: 0644]
docs/mac/install.txt

diff --git a/docs/mac/ansi.diff b/docs/mac/ansi.diff
new file mode 100644 (file)
index 0000000..4df4f47
--- /dev/null
@@ -0,0 +1,25 @@
+--- ansi.h.old Mon Mar 29 19:47:26 2004
++++ ansi.h     Mon Mar 29 19:55:56 2004
+@@ -38,6 +38,11 @@
+       #define _BSD_RUNE_T_    __WCHAR_TYPE__                  /* rune_t */
+       
++        
++      #ifndef WCHAR_MIN
+       #define WCHAR_MIN       ((wchar_t) 0x80000000U)
++      #endif
++      #ifndef WCHAR_MAX
+       #define WCHAR_MAX       ((wchar_t) 0x7FFFFFFFU)
++      #endif
+       
+       typedef wchar_t wint_t;
+@@ -49,5 +54,9 @@
+ #ifndef _ANSI_SOURCE
+-      typedef _BSD_WCHAR_T_   rune_t;
++ #ifndef _BSD_RUNE_T_DEFINED_
++  #define _BSD_RUNE_T_DEFINED_
++  typedef _BSD_RUNE_T_ rune_t;
++ #endif
++  /*  typedef _BSD_WCHAR_T_   rune_t; */
+ #endif
index bb54fd5dc9a9b5b37ce9d3a6f8d8b41d7fcd27c4..ec1227d3ed33a8902a9f140da462114ff7994cd0 100644 (file)
@@ -44,6 +44,15 @@ CodeWarrior Pro 5:Pre-Release:Carbon & MacOSX Development:Carbonized MSL and
 CodeWarrior Pro 5:Pre-Release:Carbon & MacOSX Development:Carbonized Runtimes 
 (consult the file CodeWarrior Pro 5:Pre-Release:Carbon & MacOSX Development:Carbon & MacOSX README)
 
+Patching headers: CodeWarrior 8.x
+---------------------------------
+
+If you run into trouble with WCHAR_MIN and WCHAR_MAX in ansi.h,
+apply the patch ansi.diff.
+
+You may also need to comment out the _T definition in
+ctype.h if you get multiple definition errors.
+
 setup.h
 -------