From 4b96a2744d05c848522dd59b10660ecbbcc334e4 Mon Sep 17 00:00:00 2001 From: Rob Hughes Date: Thu, 9 Jan 2020 10:59:34 +0000 Subject: Fix issues due to #include Windows.h Change-Id: I9d77b5ad6cd81e87217da0c47788a43834c3ac28 Signed-off-by: Robert Hughes --- include/armnn/Logging.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/armnn/Logging.hpp b/include/armnn/Logging.hpp index be84fadfd6..af6b813c85 100644 --- a/include/armnn/Logging.hpp +++ b/include/armnn/Logging.hpp @@ -11,7 +11,11 @@ #if defined(_MSC_VER) +#ifndef NOMINMAX +#define NOMINMAX // Prevent definition of min/max macros that interfere with std::min/max +#endif #include +#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__) -- cgit v1.2.1