diff --git a/CMakeLists.txt b/CMakeLists.txt index 63071a0e..276c3b98 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,9 +68,14 @@ set(MINECRAFT_SHARED_DEFINES $<$:_DEBUG> _CRT_NON_CONFORMING_SWPRINTFS _CRT_SECURE_NO_WARNINGS + _HAS_STD_BYTE=0 ) # Add platform-specific defines +if(PLATFORM_NAME STREQUAL "Windows64") + list(APPEND MINECRAFT_SHARED_DEFINES _WINDOWS64) + set(IGGY_LIBS iggy_w64.lib) +endif() list(APPEND MINECRAFT_SHARED_DEFINES ${PLATFORM_DEFINES}) # --- diff --git a/Minecraft.World/x64headers/extraX64.h b/Minecraft.World/x64headers/extraX64.h index 4af047b5..823d593c 100644 --- a/Minecraft.World/x64headers/extraX64.h +++ b/Minecraft.World/x64headers/extraX64.h @@ -3,6 +3,7 @@ #include #include #include +#include #include "..\..\Minecraft.Client\SkinBox.h" @@ -11,7 +12,8 @@ #define MULTITHREAD_ENABLE -typedef unsigned char byte; +// byte is already defined by rpcndr.h (via windows.h) +// std::byte is suppressed via _HAS_STD_BYTE=0 in CMakeLists.txt const int XUSER_INDEX_ANY = 255; const int XUSER_INDEX_FOCUS = 254;