From 323eab49f6836baf6a86a207298135d69bc27e73 Mon Sep 17 00:00:00 2001 From: Damiano <54273858+ienapliss@users.noreply.github.com> Date: Mon, 27 Jan 2020 00:09:20 +0100 Subject: [PATCH] small fix for mingw --- extern/poshlib/posh.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/extern/poshlib/posh.h b/extern/poshlib/posh.h index 6cfb6c8..2fd930d 100644 --- a/extern/poshlib/posh.h +++ b/extern/poshlib/posh.h @@ -333,11 +333,6 @@ LCC predefines the following: # define POSH_OS_STRING "GameCube" #endif -#if defined __MINGW32__ -# define POSH_OS_MINGW 1 -# define POSH_OS_STRING "MinGW" -#endif - #if defined GO32 && defined DJGPP && defined __MSDOS__ # define POSH_OS_GO32 1 # define POSH_OS_STRING "GO32/MS-DOS" @@ -427,7 +422,14 @@ LCC predefines the following: # define POSH_OS_STRING "XBOX" #endif -#if defined _WIN32 || defined WIN32 || defined __NT__ || defined __WIN32__ +#if defined __MINGW32__ || defined __MINGW64__ +# define POSH_OS_MINGW 1 +# if defined _WIN64 || defined __MINGW64__ +# define POSH_OS_MINGW64 +# define POSH_OS_WIN64 1 +# endif +# define POSH_OS_STRING "MinGW" +#elif defined _WIN32 || defined WIN32 || defined __NT__ || defined __WIN32__ # define POSH_OS_WIN32 1 # if !defined POSH_OS_XBOX # if defined _WIN64