lokinet/llarp/fs.hpp

23 lines
462 B
C++
Raw Normal View History

2018-04-08 12:18:16 +00:00
#ifndef LLARP_FS_HPP
#define LLARP_FS_HPP
2018-06-14 07:48:42 +00:00
#if defined(WIN32) || defined(_WIN32)
2018-06-14 19:22:26 +00:00
#define PATH_SEP "\\"
2018-06-14 07:48:42 +00:00
#else
2018-06-14 19:22:26 +00:00
#define PATH_SEP "/"
2018-06-14 07:48:42 +00:00
#endif
2018-06-14 19:22:26 +00:00
#include "filesystem.h"
2018-07-26 08:52:27 +00:00
// mingw32 in the only one that doesn't use cpp17::filesystem
#if defined(__MINGW32__)
namespace fs = std::experimental::filesystem;
2018-07-26 08:52:27 +00:00
#else
// not CPP17 needs this
// openbsd needs this
// linux gcc 7.2 needs this
namespace fs = cpp17::filesystem;
2018-07-27 03:41:55 +00:00
#endif // end mingw32
2018-06-14 19:28:27 +00:00
2018-07-27 03:41:55 +00:00
#endif // end LLARP_FS_HPP