Skip to content

Commit

Permalink
Update rcore.c
Browse files Browse the repository at this point in the history
  • Loading branch information
raysan5 committed Sep 22, 2024
1 parent 352c450 commit 24a1cd8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/rcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,14 @@ unsigned int __stdcall timeEndPeriod(unsigned int uPeriod);
#include <direct.h> // Required for: _mkdir()
#define MKDIR(dir) _mkdir(dir)
#elif defined __GNUC__
#if defined(__linux__)
#if defined(EMSCRIPTEN)
#define MKDIR(dir) mkdir(dir)
#elif defined(__linux__)
#define MKDIR(dir) mkdir(dir, 0777);
#else
#include <sys/types.h>
#include <sys/stat.h> // Required for: mkdir()
#define MKDIR(dir) mkdir(dir) // OLD: mkdir(dir, 0777) -> w64devkit complaints!
#define MKDIR(dir) _mkdir(dir) // OLD: mkdir(dir, 0777) -> w64devkit complaints!
#endif
#endif

Expand Down

0 comments on commit 24a1cd8

Please sign in to comment.