summaryrefslogtreecommitdiff
path: root/win32/win32.h
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32.h')
-rw-r--r--win32/win32.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/win32/win32.h b/win32/win32.h
index 856232ae84..28d582a270 100644
--- a/win32/win32.h
+++ b/win32/win32.h
@@ -9,6 +9,8 @@
#ifndef _INC_WIN32_PERL5
#define _INC_WIN32_PERL5
+#define _WIN32_WINNT 0x0400 /* needed for TryEnterCriticalSection() etc. */
+
#if defined(PERL_OBJECT) || defined(PERL_IMPLICIT_SYS) || defined(PERL_CAPI)
# define DYNAMIC_ENV_FETCH
# define ENV_HV_NAME "___ENV_HV_NAME___"