Sfoglia il codice sorgente

fix issues on win32

Julius Pfrommer 9 anni fa
parent
commit
d8d4b5bd0c
1 ha cambiato i file con 2 aggiunte e 6 eliminazioni
  1. 2 6
      src/ua_types.c

+ 2 - 6
src/ua_types.c

@@ -5,17 +5,13 @@
 #define __USE_POSIX
 #include <stdlib.h> // malloc, free, rand
 
-#ifdef _WIN32
-#include <windows.h>
-#else
-#include <sys/time.h>
-#endif
-
 #include "ua_util.h"
 
 #ifdef _WIN32
+#include <windows.h>
 #define RAND(SEED) (UA_UInt32)rand()
 #else
+#include <sys/time.h>
 #define RAND(SEED) (UA_UInt32)rand_r(SEED)
 #endif