]> git.saurik.com Git - wxWidgets.git/blobdiff - src/regex/regex.h
Wrap some functions with wxAutoNSAutoreleasePool
[wxWidgets.git] / src / regex / regex.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>