From f936f2983daf1c2636102de5b0a66c96fc3a6f9e Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Mon, 22 Dec 2003 22:30:50 +0000 Subject: [PATCH] It seems that making the NewAPIs.h header globally visible causes problems when compiling the com_dotnet extension, so I'm moving it to be visible only to the VCWD code. Thanks Frank :-) --- TSRM/tsrm_virtual_cwd.c | 5 +++++ TSRM/tsrm_win32.c | 4 ---- TSRM/tsrm_win32.h | 5 ----- 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 #include "tsrm_win32.h" +# if HAVE_NEWAPIS_H +# define WANT_GETLONGPATHNAME_WRAPPER +# define COMPILE_NEWAPIS_STUBS +# include +# 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 -#if HAVE_NEWAPIS_H -# define WANT_GETLONGPATHNAME_WRAPPER -# include -#endif - struct ipc_perm { int key; unsigned short uid; -- 2.40.0