diff options
Diffstat (limited to 'src/armnnUtils/Filesystem.hpp')
-rw-r--r-- | src/armnnUtils/Filesystem.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/armnnUtils/Filesystem.hpp b/src/armnnUtils/Filesystem.hpp index 3d93ce610d..ba0d97a272 100644 --- a/src/armnnUtils/Filesystem.hpp +++ b/src/armnnUtils/Filesystem.hpp @@ -5,6 +5,11 @@ #pragma once +#if defined(_MSC_VER) +// ghc includes Windows.h directly, bringing in macros that we don't want (e.g. min/max). +// By including Windows.h ourselves first (with appropriate options), we prevent this. +#include <common/include/WindowsWrapper.hpp> +#endif #include <ghc/filesystem.hpp> namespace fs = ghc::filesystem; |