mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-24 06:50:20 +01:00
Fix build with MinGW-w64
Only works with 32-bit, however
This commit is contained in:
parent
71329131bd
commit
7f5e9f0fb9
@ -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)
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user