From f754921b44e6e2c639dfb95f5b20c36b373c3b4d Mon Sep 17 00:00:00 2001 From: Vinyl Darkscratch Date: Thu, 4 Oct 2018 13:02:23 -0700 Subject: [PATCH] Fix Windows compilation errors --- CMakeLists.txt | 3 +++ binding-mri/niko-binding.cpp | 1 + 2 files changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e17b062..1ba4eab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -151,6 +151,9 @@ if(WIN32) list(APPEND MAIN_SOURCE assets/resources.rc) list(APPEND DEFINES UNICODE) list(APPEND PLATFORM_LIBRARIES Secur32) + include_directories( + ${CMAKE_CURRENT_BINARY_DIR}/windows + ) endif() if (STEAM) diff --git a/binding-mri/niko-binding.cpp b/binding-mri/niko-binding.cpp index 5b7a47c..8038e93 100644 --- a/binding-mri/niko-binding.cpp +++ b/binding-mri/niko-binding.cpp @@ -5,6 +5,7 @@ #include "debugwriter.h" #if defined _WIN32 +#define OS_W32 #include #elif defined __APPLE__ || __linux__ #define LINUX