Skip to content

Commit

Permalink
Fix using std::filesystem when not available
Browse files Browse the repository at this point in the history
  • Loading branch information
dimateos authored Oct 26, 2023
1 parent 4e27a4a commit d251141
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/cinder/Filesystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@

#pragma once

#if ( (! defined(__APPLE__)) && defined(__cplusplus) && __cplusplus >= 201703L && defined(__has_include) && __has_include(<filesystem>)) || defined( _MSC_VER )
#define GHC_USE_STD_FS
#include <filesystem>
namespace cinder {
namespace fs = std::filesystem;
}
#if (! defined(__APPLE__)) && defined(__cplusplus) && __cplusplus >= 201703L && defined(__has_include) && __has_include(<filesystem>)
#define GHC_USE_STD_FS
#include <filesystem>
namespace cinder {
namespace fs = std::filesystem;
}
#endif

#ifndef GHC_USE_STD_FS
Expand Down

0 comments on commit d251141

Please sign in to comment.