]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed Mac CodeWarrior compilation (there's no <sys/types.h>).
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Mon, 15 Dec 2003 00:24:35 +0000 (00:24 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Mon, 15 Dec 2003 00:24:35 +0000 (00:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/regex.cpp
src/regex/regcustom.h
src/regex/regex.h

index 2efc4a026be98d02a73c7f6ed630352f4ab8f18e..072ea9df0fb7244dc60bfbd38d5c48eeaed718fe 100644 (file)
     #include "wx/intl.h"
 #endif //WX_PRECOMP
 
-// FreeBSD & Watcom require this, it probably doesn't hurt for others
+// FreeBSD, Watcom and DMars require this, CW doesn't have nor need it.
+// Others also don't seem to need it. If you have an error related to
+// (not) including <sys/types.h> please report details to
+// wx-dev@lists.wxwindows.org
 #if defined(__UNIX__) || defined(__WATCOMC__) || defined(__DIGITALMARS__)
-    #include <sys/types.h>
+#   include <sys/types.h>
 #endif
 
 #ifndef __WXWINCE__
index 02db6888507cb5593c0d2f4caf7fdf9bbc195b53..d13dcef80746b034263b67f3ef3e36d4d0b1d68d 100644 (file)
  */
 
 /* headers if any */
-#include <sys/types.h>
+
+// FreeBSD, Watcom and DMars require this, CW doesn't have nor need it.
+// Others also don't seem to need it. If you have an error related to
+// (not) including <sys/types.h> please report details to
+// wx-dev@lists.wxwindows.org
+#if defined(__UNIX__) || defined(__WATCOMC__) || defined(__DIGITALMARS__)
+#   include <sys/types.h>
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <ctype.h>
index a1fcec2e1c0fe1b684b5a8e2f77765b3ec27c926..b3e0e0a8ed7c53d6be518da599954574c3df679c 100644 (file)
 extern "C" {
 #endif
 
-#include <sys/types.h>
+// FreeBSD, Watcom and DMars require this, CW doesn't have nor need it.
+// Others also don't seem to need it. If you have an error related to
+// (not) including <sys/types.h> please report details to
+// wx-dev@lists.wxwindows.org
+#if defined(__UNIX__) || defined(__WATCOMC__) || defined(__DIGITALMARS__)
+#   include <sys/types.h>
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>