aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortakase1121 <20792268+takase1121@users.noreply.github.com>2024-12-02 11:46:44 +0800
committertakase1121 <20792268+takase1121@users.noreply.github.com>2024-12-02 11:46:44 +0800
commit32a7245c18adb166b8b2e3cb18e7f5b54f629c4d (patch)
tree3434befecd086b7c780970078e959bcb3a7aa547
parent0042989193139217b410fc912b6c7c9f10c7ec4b (diff)
downloadlite-xl-plugin-manager-32a7245c18adb166b8b2e3cb18e7f5b54f629c4d.tar.gz
lite-xl-plugin-manager-32a7245c18adb166b8b2e3cb18e7f5b54f629c4d.zip
lpm.c: do not include winsock.h when including winsock2.h
-rw-r--r--src/lpm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lpm.c b/src/lpm.c
index 9aecd2d..7ebaa04 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -1,4 +1,6 @@
#ifdef _WIN32
+ // prevent windows.h from including winsock.h, which will allow us to include winsock2.h
+ #define _WINSOCKAPI_
#include <direct.h>
#include <windows.h>
#include <process.h>