Fix incorrect OSAL_DIR_SEPARATORS when compiling using mingw

This commit is contained in:
Rosalie Wanders 2023-10-01 13:38:46 +02:00
parent 36bf31b7bf
commit 945718c465

View file

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