Update rcore.c

This commit is contained in:
Ray 2024-09-22 22:50:47 +02:00
parent 352c450ad0
commit 24a1cd8c5b

View File

@ -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