Fix issues due to #include Windows.h
authorRob Hughes <robert.hughes@arm.com>
Thu, 9 Jan 2020 10:59:34 +0000 (10:59 +0000)
committerRob Hughes <robert.hughes@arm.com>
Thu, 9 Jan 2020 16:37:55 +0000 (16:37 +0000)
Change-Id: I9d77b5ad6cd81e87217da0c47788a43834c3ac28
Signed-off-by: Robert Hughes <robert.hughes@arm.com>
include/armnn/Logging.hpp

index be84fad..af6b813 100644 (file)
 
 
 #if defined(_MSC_VER)
+#ifndef NOMINMAX
+#define NOMINMAX // Prevent definition of min/max macros that interfere with std::min/max
+#endif
 #include <Windows.h>
+#undef TIME_MS  // Windows.h defines this but we don't need it and it interferes with our definition in Instrument.hpp
 #endif
 
 #if defined(__ANDROID__)