Kaynağa Gözat

Fix to compile with android 21 and above

mingodad 6 yıl önce
ebeveyn
işleme
2efbfb4905
1 değiştirilmiş dosya ile 10 ekleme ve 1 silme
  1. 10 1
      SquiLu/sqstdlib/sqstdsystem.cpp

+ 10 - 1
SquiLu/sqstdlib/sqstdsystem.cpp

@@ -369,8 +369,17 @@ static SQRESULT  _system_sleep(HSQUIRRELVM v)
     return 0;
     return 0;
 }
 }
 
 
-#ifndef _WIN32_WCE
+#if !defined(_WIN32_WCE)
+#if !defined(NO_TIMEB)
 #include <sys/timeb.h>
 #include <sys/timeb.h>
+#else
+struct timeb {
+    time_t          time;
+    unsigned short  millitm;
+    short           timezone;
+    short           dstflag;
+};
+#endif
 
 
 #if !(defined(TARGET_IOS) || defined(__APPLE__) || defined(_WIN32))
 #if !(defined(TARGET_IOS) || defined(__APPLE__) || defined(_WIN32))
 static int sqftime(struct timeb *tp)
 static int sqftime(struct timeb *tp)