blob: 0d29a7558d7e6c87841b68974b5e005887c7a038 [file] [log] [blame]
Laurent Carlier749294b2020-06-01 09:03:17 +01001//
Jim Flynn6da6a452020-07-14 14:26:27 +01002// Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
Rob Hughesbdee4262020-01-07 17:05:24 +00003// SPDX-License-Identifier: MIT
4//
5
6#pragma once
Jim Flynn870b96c2022-03-25 21:24:56 +00007#if !defined(ARMNN_DISABLE_FILESYSTEM)
Rob Hughesbdee4262020-01-07 17:05:24 +00008
Rob Hughes35c31c02020-08-17 15:47:20 +01009#if defined(_MSC_VER)
10// ghc includes Windows.h directly, bringing in macros that we don't want (e.g. min/max).
11// By including Windows.h ourselves first (with appropriate options), we prevent this.
12#include <common/include/WindowsWrapper.hpp>
13#endif
Jim Flynnc9631102020-06-24 11:11:20 +010014#include <ghc/filesystem.hpp>
15namespace fs = ghc::filesystem;
16
Rob Hughesbdee4262020-01-07 17:05:24 +000017namespace armnnUtils
18{
19namespace Filesystem
20{
21
Francis Murtagh532a29d2020-06-29 11:50:01 +010022/// Returns a path to a file in the system temporary folder. If the file existed it will be deleted.
23fs::path NamedTempFile(const char* fileName);
Rob Hughesbdee4262020-01-07 17:05:24 +000024
Jim Flynn870b96c2022-03-25 21:24:56 +000025} // namespace armnnUtils
26} // namespace Filesystem
27
28#endif // !defined(ARMNN_DISABLE_FILESYSTEM)