|
@@ -13,7 +13,7 @@
|
|
|
|
|
|
#include "ua_util.h"
|
|
|
|
|
|
-#ifdef _MSC_VER
|
|
|
+#ifdef _WIN32
|
|
|
#define RAND(SEED) (UA_UInt32)rand()
|
|
|
#else
|
|
|
#define RAND(SEED) (UA_UInt32)rand_r(SEED)
|
|
@@ -266,8 +266,9 @@ UA_TYPE_AS(UA_DateTime, UA_Int64)
|
|
|
#define HUNDRED_NANOSEC_PER_USEC 10LL
|
|
|
#define HUNDRED_NANOSEC_PER_SEC (HUNDRED_NANOSEC_PER_USEC * 1000000LL)
|
|
|
|
|
|
-#ifdef _MSC_VER
|
|
|
+#ifdef _WIN32
|
|
|
static const unsigned __int64 epoch = 116444736000000000;
|
|
|
+int gettimeofday(struct timeval *tp, struct timezone *tzp);
|
|
|
int gettimeofday(struct timeval *tp, struct timezone *tzp) {
|
|
|
FILETIME ft;
|
|
|
SYSTEMTIME st;
|