]> granicus.if.org Git - php/commitdiff
It seems that making the NewAPIs.h header globally visible causes
authorWez Furlong <wez@php.net>
Mon, 22 Dec 2003 22:30:50 +0000 (22:30 +0000)
committerWez Furlong <wez@php.net>
Mon, 22 Dec 2003 22:30:50 +0000 (22:30 +0000)
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
TSRM/tsrm_win32.c
TSRM/tsrm_win32.h

index a40d8bed6c69bdd53a5c8b407195c8e4c6f6e68c..7e4a323a6e211b5bb17b8ae1a301cfd101424dea 100644 (file)
 #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
index d08b4cc3b253e9a2e969484d66172fba2283c3ce..3e42f6b9b3282ae880c74ba05c19e9a57e508795 100644 (file)
 
 #ifdef TSRM_WIN32
 
-#if HAVE_NEWAPIS_H
-# define COMPILE_NEWAPIS_STUBS
-#endif
-
 #include "tsrm_win32.h"
 
 #ifdef ZTS
index 4a4e90c47884827d8cb3afec3633cfec29f9dfac..ffed2d559e5ea250e7fcc9a397c785995c52c3de 100644 (file)
 #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;