diff --git a/examples/plugins/engine/ExampleEnginePlugin.cpp b/examples/plugins/engine/ExampleEnginePlugin.cpp
index 09d55a509900e074eccb0df05b258f9b52dee8ba..2fdbf85b04035e9cd9c0f29712ec952f9825b000 100644
--- a/examples/plugins/engine/ExampleEnginePlugin.cpp
+++ b/examples/plugins/engine/ExampleEnginePlugin.cpp
@@ -15,7 +15,7 @@
 #include <cstring>
 #include <ctime>
 
-#ifndef _WIN32_
+#ifndef _WIN32
 #include <sys/time.h>
 #endif
 
@@ -27,7 +27,7 @@ std::string now()
 #ifdef _WIN32
     time_t rawTime;
     std::time(&rawTime);
-    timeInfo = std::localtime(&rawtime);
+    timeInfo = std::localtime(&rawTime);
 #else
     timeval curTime;
     gettimeofday(&curTime, nullptr);