mirror of
https://github.com/mupen64plus/mupen64plus-core.git
synced 2024-06-02 11:17:51 -04:00
Fix incorrect OSAL_DIR_SEPARATORS when compiling using mingw
This commit is contained in:
parent
36bf31b7bf
commit
945718c465
|
@ -29,14 +29,17 @@
|
|||
#include <zlib.h>
|
||||
|
||||
/* some file-related preprocessor definitions */
|
||||
#if defined(WIN32) && !defined(__MINGW32__)
|
||||
#if defined(WIN32)
|
||||
#include <io.h> // For _unlink()
|
||||
|
||||
#define unlink _unlink
|
||||
|
||||
#define OSAL_DIR_SEPARATORS "\\/"
|
||||
#define WIDE_OSAL_DIR_SEPARATORS L"\\/"
|
||||
#define PATH_MAX _MAX_PATH
|
||||
|
||||
#ifndef PATH_MAX
|
||||
#define PATH_MAX _MAX_PATH
|
||||
#endif
|
||||
#else /* Not WIN32 */
|
||||
#include <limits.h> // for PATH_MAX
|
||||
#include <unistd.h> // for unlink()
|
||||
|
|
Loading…
Reference in a new issue