Skip to content

Commit

Permalink
Use CreateDirectoryA instead CreateDirectory to force non-unicode dir…
Browse files Browse the repository at this point in the history
…ectory name creation.
  • Loading branch information
guangie88 committed Sep 6, 2017
1 parent f675840 commit 117b01f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spdlog_setup.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ namespace spdlog_setup {

inline void native_create_dir(const std::string &dir_path) {
#ifdef _WIN32
CreateDirectory(dir_path.c_str(), nullptr);
CreateDirectoryA(dir_path.c_str(), nullptr);
#else
mkdir(dir_path.c_str(), 0775);
#endif
Expand Down

0 comments on commit 117b01f

Please sign in to comment.