From bdf5880ca32d1ae20933caedb4a5e4809ede4678 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sun, 27 Nov 2016 15:24:37 -0800 Subject: [PATCH] wimlib.h: test _WIN32 instead of __WIN32__ MSVC defines _WIN32 but not __WIN32__. MinGW defines both. --- include/wimlib.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wimlib.h b/include/wimlib.h index 5941b9ee..a45ebac3 100644 --- a/include/wimlib.h +++ b/include/wimlib.h @@ -440,14 +440,14 @@ typedef struct WIMStruct WIMStruct; #define WIMLIB_WIMSTRUCT_DECLARED #endif -#ifdef __WIN32__ +#ifdef _WIN32 typedef wchar_t wimlib_tchar; #else /** See @ref sec_encodings */ typedef char wimlib_tchar; #endif -#ifdef __WIN32__ +#ifdef _WIN32 /** Path separator for WIM paths passed back to progress callbacks. * This is forward slash on UNIX and backslash on Windows. */ # define WIMLIB_WIM_PATH_SEPARATOR '\\' -- 2.43.0