mirror of
https://github.com/mupen64plus/mupen64plus-core.git
synced 2024-06-01 18:57:54 -04:00
Merge pull request #1040 from Rosalie241/wrong-slashes
Fix incorrect OSAL_DIR_SEPARATORS when compiling using mingw
This commit is contained in:
commit
8d3dd8faa1
|
@ -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