From e6847a09c738ecdec75aa5e220cce8c6df01c005 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 28 Dec 2020 23:49:34 +0100 Subject: [PATCH] (Windows) Fixed some MinGW compile errors. --- CMakeLists.txt | 4 +++- es-core/src/resources/TextureData.h | 1 + es-core/src/resources/TextureResource.h | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 31d88d213..3bfb92f9f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -117,7 +117,9 @@ elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") add_definitions(-DNOMINMAX) endif() -message("-- Build type is ${CMAKE_BUILD_TYPE}") +if (CMAKE_BUILD_TYPE) + message("-- Build type is ${CMAKE_BUILD_TYPE}") +endif() # Set up compiler and linker flags for debug, profiling or release builds. if(CMAKE_BUILD_TYPE MATCHES Debug) diff --git a/es-core/src/resources/TextureData.h b/es-core/src/resources/TextureData.h index d4da9484f..1f181de89 100644 --- a/es-core/src/resources/TextureData.h +++ b/es-core/src/resources/TextureData.h @@ -9,6 +9,7 @@ #ifndef ES_CORE_RESOURCES_TEXTURE_DATA_H #define ES_CORE_RESOURCES_TEXTURE_DATA_H +#include #include #include #include diff --git a/es-core/src/resources/TextureResource.h b/es-core/src/resources/TextureResource.h index e652cdb3d..e0f297b2c 100644 --- a/es-core/src/resources/TextureResource.h +++ b/es-core/src/resources/TextureResource.h @@ -14,6 +14,7 @@ #include "resources/ResourceManager.h" #include "resources/TextureDataManager.h" +#include #include #include