Fix build with MinGW-w64

Only works with 32-bit, however
This commit is contained in:
Naram Qashat 2020-10-17 19:25:22 -04:00
parent 71329131bd
commit 7f5e9f0fb9
3 changed files with 56 additions and 62 deletions

View File

@ -2,12 +2,6 @@ cmake_minimum_required(VERSION 3.5)
project(vgmstream C) project(vgmstream C)
enable_language(CXX) enable_language(CXX)
# TODO: Figure out why MinGW-w64 doesn't build
if(MINGW)
message(FATAL_ERROR "Cannot currently build with MinGW")
endif()
get_directory_property(hasParent PARENT_DIRECTORY) get_directory_property(hasParent PARENT_DIRECTORY)
if(hasParent) if(hasParent)
set(VGM_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} PARENT_SCOPE) set(VGM_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} PARENT_SCOPE)

View File

@ -11,7 +11,7 @@
// NULL: 65 // NULL: 65
// mm2: 69 // mm2: 69
#if (_MSC_VER <= 1200) #if defined(_MSC_VER) && (_MSC_VER <= 1200)
typedef int intptr_t; typedef int intptr_t;
#endif #endif

View File

@ -21,7 +21,7 @@
#include <windows.h> #include <windows.h>
#include <stddef.h> #include <stddef.h>
#if (_MSC_VER <= 1200) #if defined(_MSC_VER) && (_MSC_VER <= 1200)
typedef int intptr_t; typedef int intptr_t;
#endif #endif
/* /*