From 44f93b05967edabb684f7b7a87cad4d0d77313c5 Mon Sep 17 00:00:00 2001 From: Javidx9 <25419386+OneLoneCoder@users.noreply.github.com> Date: Sun, 17 Jan 2021 17:04:33 +0000 Subject: [PATCH] Version 2.12 - "Clean up MinGW mess" --- olcPixelGameEngine.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/olcPixelGameEngine.h b/olcPixelGameEngine.h index 1eef80d..940dc96 100644 --- a/olcPixelGameEngine.h +++ b/olcPixelGameEngine.h @@ -2,7 +2,7 @@ olcPixelGameEngine.h +-------------------------------------------------------------+ - | OneLoneCoder Pixel Game Engine v2.11 | + | OneLoneCoder Pixel Game Engine v2.12 | | "What do you need? Pixels... Lots of Pixels..." - javidx9 | +-------------------------------------------------------------+ @@ -208,6 +208,7 @@ +PGEX Break-In Hooks - with a push from Dandistine +Wireframe Decal Mode - For debug overlays 2.11: Made PGEX hooks optional - (provide true to super constructor) + 2.12: Fix for MinGW compiler non-compliance :( - why is its sdk structure different?? why??? !! Apple Platforms will not see these updates immediately - Sorry, I dont have a mac to test... !! @@ -286,7 +287,7 @@ int main() #include #include -#define PGE_VER 211 +#define PGE_VER 212 // O------------------------------------------------------------------------------O // | COMPILER CONFIGURATION ODDITIES | @@ -4013,7 +4014,11 @@ namespace olc #define min(a, b) ((a < b) ? a : b) #define max(a, b) ((a > b) ? a : b) #include +#if defined(__MINGW32__) // Thanks Gusgo & Dandistine, but c'mon mingw!! wtf?! +#include +#else #include +#endif #include #undef min #undef max