You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lokinet/llarp/fs.hpp

34 lines
541 B
C++

7 years ago
#ifndef LLARP_FS_HPP
#define LLARP_FS_HPP
#if defined(WIN32) || defined(_WIN32)
# define PATH_SEP "\\"
#else
# define PATH_SEP "/"
#endif
#if(__cplusplus >= 201703L)
#include <experimental/filesystem>
namespace fs = std::experimental::filesystem;
#else
#ifdef __clang__
#include "filesystem.h"
namespace fs = cpp17::filesystem;
#else
#error "fs support unimplemented"
#include <string>
7 years ago
namespace fs
{
static std::string Sep = "/";
struct path
{
};
}
#endif
#endif
7 years ago
#endif