Skip to content

Commit

Permalink
switch to std::filesystem for clang-7 and later
Browse files Browse the repository at this point in the history
  • Loading branch information
lzhangzz committed Jun 29, 2022
1 parent 7a2ac30 commit 2d94e3d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions csrc/mmdeploy/core/utils/filesystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
#ifndef MMDEPLOY_CSRC_CORE_UTILS_FILESYSTEM_H_
#define MMDEPLOY_CSRC_CORE_UTILS_FILESYSTEM_H_

// TODO: what about clang?
#if __GNUC__ >= 8 || _MSC_VER
#if __GNUC__ >= 8 || _MSC_VER || __clang_major__ >= 7
#include <filesystem>
namespace fs = std::filesystem;
#else
Expand Down

0 comments on commit 2d94e3d

Please sign in to comment.