Skip to content
Snippets Groups Projects
Commit 281e75fe authored by Atkins, Charles Vernon's avatar Atkins, Charles Vernon
Browse files

Fix bad WIN32 ifdef check

parent 56ade5a3
No related branches found
No related tags found
1 merge request!264Address various windows issues
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include <cstring> #include <cstring>
#include <ctime> #include <ctime>
#ifndef _WIN32_ #ifndef _WIN32
#include <sys/time.h> #include <sys/time.h>
#endif #endif
...@@ -27,7 +27,7 @@ std::string now() ...@@ -27,7 +27,7 @@ std::string now()
#ifdef _WIN32 #ifdef _WIN32
time_t rawTime; time_t rawTime;
std::time(&rawTime); std::time(&rawTime);
timeInfo = std::localtime(&rawtime); timeInfo = std::localtime(&rawTime);
#else #else
timeval curTime; timeval curTime;
gettimeofday(&curTime, nullptr); gettimeofday(&curTime, nullptr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment