Skip to content

Commit

Permalink
fix: warning on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jeefo committed Mar 8, 2024
1 parent e845b5c commit 37d5927
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crlib/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ struct Platform : public Singleton <Platform> {
int result = 1;
#if defined(CR_WINDOWS)
result = _mkdir (dir);
(void) mode;
#else
result = mkdir (dir, mode == -1 ? (S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH) : mode);
#endif
Expand Down

0 comments on commit 37d5927

Please sign in to comment.