diff options
author | Rob Hughes <robert.hughes@arm.com> | 2020-08-17 15:47:20 +0100 |
---|---|---|
committer | TeresaARM <teresa.charlinreyes@arm.com> | 2020-08-17 17:35:13 +0000 |
commit | 35c31c04a9805082be32474211dcd62b7629ed2b (patch) | |
tree | 69acbe73bb18a235d34e3acf256f84b3633f595a /src/armnnUtils/Filesystem.hpp | |
parent | ec01fb79f15de76f41bd74fac09c2ffb25b7ada6 (diff) | |
download | armnn-35c31c04a9805082be32474211dcd62b7629ed2b.tar.gz |
Fix Windows build
Change-Id: I145d220c73313e31c184b6a75ab7f4823df99919
Signed-off-by: Robert Hughes <robert.hughes@arm.com>
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; |