aboutsummaryrefslogtreecommitdiff
path: root/include/armnnUtils/Filesystem.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/armnnUtils/Filesystem.hpp')
-rw-r--r--include/armnnUtils/Filesystem.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/armnnUtils/Filesystem.hpp b/include/armnnUtils/Filesystem.hpp
index ba0d97a272..0d29a7558d 100644
--- a/include/armnnUtils/Filesystem.hpp
+++ b/include/armnnUtils/Filesystem.hpp
@@ -4,6 +4,7 @@
//
#pragma once
+#if !defined(ARMNN_DISABLE_FILESYSTEM)
#if defined(_MSC_VER)
// ghc includes Windows.h directly, bringing in macros that we don't want (e.g. min/max).
@@ -21,5 +22,7 @@ namespace Filesystem
/// Returns a path to a file in the system temporary folder. If the file existed it will be deleted.
fs::path NamedTempFile(const char* fileName);
-}
-}
+} // namespace armnnUtils
+} // namespace Filesystem
+
+#endif // !defined(ARMNN_DISABLE_FILESYSTEM)