summaryrefslogtreecommitdiffhomepage
path: root/NetEx
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-09-30 16:49:25 +0200
committerAki <please@ignore.pl>2021-09-30 16:49:25 +0200
commit545889c990d9155635dfca73345be37f207b2d68 (patch)
tree8133da0fdf1db86489ed84403f56afef6c6a56e1 /NetEx
parent966fe28c59f59fc8be795c8215b9352435982445 (diff)
downloadstarshatter-545889c990d9155635dfca73345be37f207b2d68.zip
starshatter-545889c990d9155635dfca73345be37f207b2d68.tar.gz
starshatter-545889c990d9155635dfca73345be37f207b2d68.tar.bz2
Fixed NetEx includes against win sdk
Diffstat (limited to 'NetEx')
-rw-r--r--NetEx/CMakeLists.txt4
-rw-r--r--NetEx/NetAddr.h1
-rw-r--r--NetEx/NetLayer.h1
3 files changed, 5 insertions, 1 deletions
diff --git a/NetEx/CMakeLists.txt b/NetEx/CMakeLists.txt
index 553ab30..ccb0f01 100644
--- a/NetEx/CMakeLists.txt
+++ b/NetEx/CMakeLists.txt
@@ -17,9 +17,11 @@ add_library(
NetServer.cpp
NetSock.cpp
)
+set(WINDOWSSDK_PATH "C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um")
target_include_directories(
NetEx
- PUBLIC .
+ PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
+ PUBLIC ${WINDOWSSDK_PATH} # FIXME
)
target_link_libraries(
NetEx
diff --git a/NetEx/NetAddr.h b/NetEx/NetAddr.h
index 58e6b9c..32e01c9 100644
--- a/NetEx/NetAddr.h
+++ b/NetEx/NetAddr.h
@@ -41,6 +41,7 @@
#define NetAddr_h
#include <windows.h>
+#include <winsock.h>
// +-------------------------------------------------------------------+
diff --git a/NetEx/NetLayer.h b/NetEx/NetLayer.h
index 66b9c9d..49c884e 100644
--- a/NetEx/NetLayer.h
+++ b/NetEx/NetLayer.h
@@ -40,6 +40,7 @@
#define NetLayer_h
#include <windows.h>
+#include <winsock.h>
#include "Text.h"
// +-------------------------------------------------------------------+