problems when compiling the com_dotnet extension, so I'm moving
it to be visible only to the VCWD code.
Thanks Frank :-)
#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
#ifdef TSRM_WIN32
-#if HAVE_NEWAPIS_H
-# define COMPILE_NEWAPIS_STUBS
-#endif
-
#include "tsrm_win32.h"
#ifdef ZTS
#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;