]> git.saurik.com Git - wxWidgets.git/commitdiff
correction for Mac OS compilation
authorGilles Depeyrot <gilles_depeyrot@mac.com>
Sun, 22 Jul 2001 14:23:55 +0000 (14:23 +0000)
committerGilles Depeyrot <gilles_depeyrot@mac.com>
Sun, 22 Jul 2001 14:23:55 +0000 (14:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11146 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/opengl/cube/cube.cpp

index 75dde17d4e38004988d7cc07c1cd5ef7229c9351..a92f940d292dc0edac4f60f7f76d6a2d1b24042c 100644 (file)
 #include "cube.h"
 
 #ifndef __WXMSW__     // for wxStopWatch, see remark below
 #include "cube.h"
 
 #ifndef __WXMSW__     // for wxStopWatch, see remark below
-#include <sys/time.h>
-#include <sys/unistd.h>
+  #if defined(__WXMAC__) && !defined(__DARWIN__)
+    #include <utime.h>
+    #include <unistd.h>
+  #else
+    #include <sys/time.h>
+    #include <sys/unistd.h>
+  #endif
 #else
 #include <sys/timeb.h>
 #endif
 #else
 #include <sys/timeb.h>
 #endif