summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TSRM/tsrm_virtual_cwd.c5
-rw-r--r--TSRM/tsrm_win32.c4
-rw-r--r--TSRM/tsrm_win32.h5
3 files changed, 5 insertions, 9 deletions
diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c
index a40d8bed6c..7e4a323a6e 100644
--- a/TSRM/tsrm_virtual_cwd.c
+++ b/TSRM/tsrm_virtual_cwd.c
@@ -34,6 +34,11 @@
#ifdef TSRM_WIN32
#include <io.h>
#include "tsrm_win32.h"
+# if HAVE_NEWAPIS_H
+# define WANT_GETLONGPATHNAME_WRAPPER
+# define COMPILE_NEWAPIS_STUBS
+# include <NewAPIs.h>
+# endif
#endif
#ifdef NETWARE
diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c
index d08b4cc3b2..3e42f6b9b3 100644
--- a/TSRM/tsrm_win32.c
+++ b/TSRM/tsrm_win32.c
@@ -30,10 +30,6 @@
#ifdef TSRM_WIN32
-#if HAVE_NEWAPIS_H
-# define COMPILE_NEWAPIS_STUBS
-#endif
-
#include "tsrm_win32.h"
#ifdef ZTS
diff --git a/TSRM/tsrm_win32.h b/TSRM/tsrm_win32.h
index 4a4e90c478..ffed2d559e 100644
--- a/TSRM/tsrm_win32.h
+++ b/TSRM/tsrm_win32.h
@@ -24,11 +24,6 @@
#include "TSRM.h"
#include <windows.h>
-#if HAVE_NEWAPIS_H
-# define WANT_GETLONGPATHNAME_WRAPPER
-# include <NewAPIs.h>
-#endif
-
struct ipc_perm {
int key;
unsigned short uid;