blob: ba0d97a272fc3491351415e86543f560cff3765f [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
7
Rob Hughes35c31c02020-08-17 15:47:20 +01008#if defined(_MSC_VER)
9// ghc includes Windows.h directly, bringing in macros that we don't want (e.g. min/max).
10// By including Windows.h ourselves first (with appropriate options), we prevent this.
11#include <common/include/WindowsWrapper.hpp>
12#endif
Jim Flynnc9631102020-06-24 11:11:20 +010013#include <ghc/filesystem.hpp>
14namespace fs = ghc::filesystem;
15
Rob Hughesbdee4262020-01-07 17:05:24 +000016namespace armnnUtils
17{
18namespace Filesystem
19{
20
Francis Murtagh532a29d2020-06-29 11:50:01 +010021/// Returns a path to a file in the system temporary folder. If the file existed it will be deleted.
22fs::path NamedTempFile(const char* fileName);
Rob Hughesbdee4262020-01-07 17:05:24 +000023
24}
25}