]> git.saurik.com Git - wxWidgets.git/blobdiff - src/regex/regcustom.h
Fixed Mac CodeWarrior compilation (there's no <sys/types.h>).
[wxWidgets.git] / src / regex / regcustom.h
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>