1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen: support #flag -DWIN32_FULL, when you do NOT want WIN32_FULL

This commit is contained in:
Delyan Angelov 2021-02-01 14:40:51 +02:00
parent 43676330ba
commit 5b9a7bf6b3
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -17,7 +17,7 @@ const (
#endif #endif
' '
c_concurrency_helpers = ' c_concurrency_helpers = '
typedef struct __shared_map __shared_map; typedef struct __shared_map __shared_map;
struct __shared_map { map val; sync__RwMutex mtx; }; struct __shared_map { map val; sync__RwMutex mtx; };
static inline voidptr __dup_shared_map(voidptr src, int sz) { static inline voidptr __dup_shared_map(voidptr src, int sz) {
__shared_map* dest = memdup(src, sz); __shared_map* dest = memdup(src, sz);
@ -231,7 +231,9 @@ $c_common_macros
#undef _WIN32_WINNT #undef _WIN32_WINNT
#endif #endif
#define _WIN32_WINNT 0x0600 #define _WIN32_WINNT 0x0600
#ifndef WIN32_FULL
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#endif
#ifndef _UNICODE #ifndef _UNICODE
#define _UNICODE #define _UNICODE
#endif #endif