Created
September 9, 2014 02:26
-
-
Save DDuarte/d28f94b9ee00959e0c54 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/cmake/compiler/gcc/settings.cmake b/cmake/compiler/gcc/settings.cmake | |
index acd71e8..ca33bfc 100644 | |
--- a/cmake/compiler/gcc/settings.cmake | |
+++ b/cmake/compiler/gcc/settings.cmake | |
@@ -8,7 +8,7 @@ if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS GCC_EXPECTED_VERSION) | |
endif() | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") | |
-message(STATUS "GCC: Enabled c++11 support") | |
+message(STATUS "GCC: Enabled C++11 support") | |
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99") | |
message(STATUS "GCC: Enabled C99 support") | |
diff --git a/cmake/compiler/mingw/settings.cmake b/cmake/compiler/mingw/settings.cmake | |
index 68156bd..b811ee4 100644 | |
--- a/cmake/compiler/mingw/settings.cmake | |
+++ b/cmake/compiler/mingw/settings.cmake | |
@@ -4,6 +4,12 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) | |
# Set build-directive (used in core to tell which buildtype we used) | |
add_definitions(-D_BUILD_DIRECTIVE=\\"${CMAKE_BUILD_TYPE}\\") | |
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") | |
+message(STATUS "GCC: Enabled C++11 support") | |
+ | |
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99") | |
+message(STATUS "GCC: Enabled C99 support") | |
+ | |
if(PLATFORM EQUAL 32) | |
# Required on 32-bit systems to enable SSE2 (standard on x64) | |
set(SSE_FLAGS "-msse2 -mfpmath=sse") | |
diff --git a/dep/g3dlite/CMakeLists.txt b/dep/g3dlite/CMakeLists.txt | |
index 1914e66..fe895ed 100644 | |
--- a/dep/g3dlite/CMakeLists.txt | |
+++ b/dep/g3dlite/CMakeLists.txt | |
@@ -28,7 +28,6 @@ set(g3dlib_STAT_SRCS | |
source/format.cpp | |
source/g3dfnmatch.cpp | |
source/g3dmath.cpp | |
- source/GThread.cpp | |
source/Line.cpp | |
source/LineSegment.cpp | |
source/Log.cpp | |
diff --git a/dep/g3dlite/source/System.cpp b/dep/g3dlite/source/System.cpp | |
index b2f8cb8..c56dad9 100644 | |
--- a/dep/g3dlite/source/System.cpp | |
+++ b/dep/g3dlite/source/System.cpp | |
@@ -1284,7 +1284,7 @@ public: | |
RealPtr ptr = ::malloc(USERSIZE_TO_REALSIZE(bytes)); | |
if (ptr == NULL) { | |
-# ifdef G3D_WINDOWS | |
+# if defined(G3D_WINDOWS) && !defined(__MINGW32__) | |
// Check for memory corruption | |
alwaysAssertM(_CrtCheckMemory() == TRUE, "Heap corruption detected."); | |
# endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment