Ver código fonte

Fix to compile for OS X

mingodad 9 anos atrás
pai
commit
2703e473f6
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      SquiLu/sqstdlib/sqstdsystem.cpp

+ 2 - 2
SquiLu/sqstdlib/sqstdsystem.cpp

@@ -371,7 +371,7 @@ static SQRESULT  _system_sleep(HSQUIRRELVM v)
 #ifndef _WIN32_WCE
 #include <sys/timeb.h>
 
-#ifndef TARGET_IOS
+#if !(defined(TARGET_IOS) || defined(__APPLE__))
 static int sqftime(struct timeb *tp)
 {
 	struct timespec ts;
@@ -390,7 +390,7 @@ int GetMilliCount()
   // It rolls over every ~ 12.1 days (0x100000/24/60/60)
   // Use GetMilliSpan to correct for rollover
   timeb tb;
-#ifndef TARGET_IOS
+#if !(defined(TARGET_IOS) || defined(__APPLE__))
   sqftime( &tb );
 #else
   ftime( &tb );