aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortakase1121 <20792268+takase1121@users.noreply.github.com>2024-12-02 20:34:39 +0800
committertakase1121 <20792268+takase1121@users.noreply.github.com>2024-12-02 20:34:52 +0800
commitf56a2fa93d726d9251b92f9ed083e0c7b2af9ab4 (patch)
tree10e7bfee1cdeb4205ffa8cbd348e0ad821f83fce
parent60bacc7fe8a6bfa8af9f581d91c3c2c7ffa010c2 (diff)
downloadlite-xl-plugin-manager-f56a2fa93d726d9251b92f9ed083e0c7b2af9ab4.tar.gz
lite-xl-plugin-manager-f56a2fa93d726d9251b92f9ed083e0c7b2af9ab4.zip
lpm.c: use properly include winsock2.h
-rw-r--r--src/lpm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lpm.c b/src/lpm.c
index 831e128..7f35d79 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -1,10 +1,10 @@
#ifdef _WIN32
// prevent windows.h from including winsock.h, which will allow us to include winsock2.h
- #define _WINSOCKAPI_
- #include <direct.h>
+ #define WIN32_LEAN_AND_MEAN
#include <windows.h>
+ #include <direct.h>
+ #include <wincrypt.h>
#include <process.h>
- #include <fileapi.h>
#else
#ifndef LPM_NO_THRAEDS
#include <pthread.h>