aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortakase1121 <20792268+takase1121@users.noreply.github.com>2024-12-04 10:44:34 +0800
committertakase1121 <20792268+takase1121@users.noreply.github.com>2024-12-04 10:45:17 +0800
commit1058f5b8c845ac46f20ce73de1dfbba3cd301562 (patch)
tree7002464699fa55b40e65ea40283b5b85df1ed6ff
parent2bd86bd4cf770cd5459f5a9ee24ec952df8616a1 (diff)
downloadlite-xl-plugin-manager-1058f5b8c845ac46f20ce73de1dfbba3cd301562.tar.gz
lite-xl-plugin-manager-1058f5b8c845ac46f20ce73de1dfbba3cd301562.zip
lpm.c: use _WIN32_WINNT_VISTA
-rw-r--r--src/lpm.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/lpm.c b/src/lpm.c
index 13ce6e9..189ff7d 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -1,17 +1,13 @@
#ifdef _WIN32
+ // needed for symbolic link creation and VT processing stuff
+ #undef _WIN32_WINNT
+ #define _WIN32_WINNT 0x0600 // _WIN32_WINNT_VISTA
// prevent windows.h from including winsock.h, which will allow us to include winsock2.h
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <direct.h>
#include <wincrypt.h>
#include <process.h>
-
- #ifndef SYMBOLIC_LINK_FLAG_DIRECTORY
- #define SYMBOLIC_LINK_FLAG_DIRECTORY 0x1
- #endif
- #ifndef SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE
- #define SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE 0x2
- #endif
#else
#ifndef LPM_NO_THRAEDS
#include <pthread.h>