Version 2.12 - "Clean up MinGW mess"

This commit is contained in:
Javidx9 2021-01-17 17:04:33 +00:00 committed by GitHub
parent 3bd39ee92e
commit 44f93b0596
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,7 +2,7 @@
olcPixelGameEngine.h olcPixelGameEngine.h
+-------------------------------------------------------------+ +-------------------------------------------------------------+
| OneLoneCoder Pixel Game Engine v2.11 | | OneLoneCoder Pixel Game Engine v2.12 |
| "What do you need? Pixels... Lots of Pixels..." - javidx9 | | "What do you need? Pixels... Lots of Pixels..." - javidx9 |
+-------------------------------------------------------------+ +-------------------------------------------------------------+
@ -208,6 +208,7 @@
+PGEX Break-In Hooks - with a push from Dandistine +PGEX Break-In Hooks - with a push from Dandistine
+Wireframe Decal Mode - For debug overlays +Wireframe Decal Mode - For debug overlays
2.11: Made PGEX hooks optional - (provide true to super constructor) 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... !! !! Apple Platforms will not see these updates immediately - Sorry, I dont have a mac to test... !!
@ -286,7 +287,7 @@ int main()
#include <array> #include <array>
#include <cstring> #include <cstring>
#define PGE_VER 211 #define PGE_VER 212
// O------------------------------------------------------------------------------O // O------------------------------------------------------------------------------O
// | COMPILER CONFIGURATION ODDITIES | // | COMPILER CONFIGURATION ODDITIES |
@ -4013,7 +4014,11 @@ namespace olc
#define min(a, b) ((a < b) ? a : b) #define min(a, b) ((a < b) ? a : b)
#define max(a, b) ((a > b) ? a : b) #define max(a, b) ((a > b) ? a : b)
#include <gdiplus.h> #include <gdiplus.h>
#if defined(__MINGW32__) // Thanks Gusgo & Dandistine, but c'mon mingw!! wtf?!
#include <gdiplus/gdiplusinit.h>
#else
#include <gdiplusinit.h> #include <gdiplusinit.h>
#endif
#include <shlwapi.h> #include <shlwapi.h>
#undef min #undef min
#undef max #undef max