Merge pull request #1040 from Rosalie241/wrong-slashes

Fix incorrect OSAL_DIR_SEPARATORS when compiling using mingw
This commit is contained in:
Richard Goedeken 2023-10-01 16:57:49 -07:00 committed by GitHub
commit 8d3dd8faa1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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