diff --git a/Minecraft.Client/CMakeLists.txt b/Minecraft.Client/CMakeLists.txt index e39feffba..e2daf46e4 100644 --- a/Minecraft.Client/CMakeLists.txt +++ b/Minecraft.Client/CMakeLists.txt @@ -5203,5 +5203,5 @@ elseif("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "Xbox 360") "xonline" ) endif() +add_compile_options(-fpermissive) target_link_libraries(${PROJECT_NAME} PRIVATE "${ADDITIONAL_LIBRARY_DEPENDENCIES}") - diff --git a/Minecraft.World/CMakeLists.txt b/Minecraft.World/CMakeLists.txt index e8650dbc7..93aa5804b 100644 --- a/Minecraft.World/CMakeLists.txt +++ b/Minecraft.World/CMakeLists.txt @@ -1988,3 +1988,4 @@ target_compile_definitions(${PROJECT_NAME} PRIVATE ">" ) +add_compile_options(-fpermissive) diff --git a/Minecraft.World/stdafx.h b/Minecraft.World/stdafx.h index c70e426ee..165e012dc 100644 --- a/Minecraft.World/stdafx.h +++ b/Minecraft.World/stdafx.h @@ -9,8 +9,31 @@ #define AUTO_VAR(_var, _val) auto _var = _val #endif -#if ( defined _XBOX || defined _WINDOWS64 || defined _DURANGO ) -typedef unsigned __int64 __uint64; +typedef unsigned __int64; +typedef unsigned __uint64; + +#if defined( __linux__ ) +#include +typedef unsigned int DWORD; +typedef const char *LPCSTR; +typedef bool BOOL; +typedef void* LPVOID; +typedef char WCHAR; +typedef unsigned char BYTE; +typedef BYTE* PBYTE; +typedef const wchar_t* LPCWSTR; +typedef unsigned long long ULONGLONG; +typedef int HRESULT; +typedef unsigned int UINT; +#define TRUE true +#define WINAPI +typedef void* HANDLE; +typedef int INT; +// From PSXSense +#define XUSER_MAX_COUNT 4 +#define XUSER_INDEX_ANY 0x000000FF + +#define CRITICAL_SECTION #endif #ifdef _WINDOWS64