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 24a1cd8 commit 291063c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/rcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,26 +195,30 @@ unsigned int __stdcall timeEndPeriod(unsigned int uPeriod);
#include <direct.h> // Required for: _getch(), _chdir(), _mkdir()
#define GETCWD _getcwd // NOTE: MSDN recommends not to use getcwd(), chdir()
#define CHDIR _chdir
#define MKDIR(dir) _mkdir(dir)
#else
#include <unistd.h> // Required for: getch(), chdir() (POSIX), access()
#define GETCWD getcwd
#define CHDIR chdir
#define MKDIR(dir) mkdir(dir, 0777)
#endif

/*
#if defined(_MSC_VER) && ((defined(WIN32) || defined(_WIN32) || defined(__WIN32)) && !defined(__CYGWIN__))
#include <direct.h> // Required for: _mkdir()
#define MKDIR(dir) _mkdir(dir)
//#include <direct.h> // Required for: _mkdir()
//#define MKDIR(dir) _mkdir(dir)
#elif defined __GNUC__
#if defined(EMSCRIPTEN)
#define MKDIR(dir) mkdir(dir)
#define MKDIR(dir) mkdir(dir, 0777)
#elif defined(__linux__)
#define MKDIR(dir) mkdir(dir, 0777);
#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!
#endif
#endif
*/

//----------------------------------------------------------------------------------
// Defines and Macros
Expand Down

0 comments on commit 291063c

Please sign in to comment.