Parcourir la source

USE_TIMERS should be set for all systems (not only Windows) if USE_LUA and USE_WEBSOCKET is set

bel2125 il y a 10 ans
Parent
commit
01cbe37ff3
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      src/civetweb.c

+ 4 - 4
src/civetweb.c

@@ -52,6 +52,10 @@
 #endif
 #endif
 
+#if defined(USE_LUA) && defined(USE_WEBSOCKET)
+#define USE_TIMERS
+#endif
+
 #if defined(_MSC_VER)
 /* 'type cast' : conversion from 'int' to 'HANDLE' of greater size */
 #pragma warning(disable : 4306)
@@ -292,10 +296,6 @@ typedef long off_t;
 #define sleep(x) (Sleep((x)*1000))
 #define rmdir(x) (_rmdir(x))
 
-#if defined(USE_LUA) && defined(USE_WEBSOCKET)
-#define USE_TIMERS
-#endif
-
 #if !defined(fileno)
 #define fileno(x) (_fileno(x))
 #endif /* !fileno MINGW #defines fileno */