diff --git a/src/windows/port.h b/src/windows/port.h index eecc46fed..bedc2e8f9 100755 --- a/src/windows/port.h +++ b/src/windows/port.h @@ -49,15 +49,16 @@ #define WIN32_LEAN_AND_MEAN /* We always want minimal includes */ #endif +#include /* for _getcwd() */ +#include /* because we so often use open/close/etc */ +#include /* for _getpid() */ #include -#include /* for gethostname */ -#include /* because we so often use open/close/etc */ -#include /* for _getcwd() */ -#include /* for _getpid() */ -#include /* template_dictionary.cc uses va_copy */ -#include /* read in vsnprintf decl. before redifining it */ -#include /* for _strnicmp(), strerror_s() */ -#include /* for localtime_s() */ +#include /* for gethostname */ + +#include /* template_dictionary.cc uses va_copy */ +#include /* read in vsnprintf decl. before redefining it */ +#include /* for _strnicmp(), strerror_s() */ +#include /* for localtime_s() */ /* Note: the C++ #includes are all together at the bottom. This file is * used by both C and C++ code, so we put all the C++ together. */ @@ -80,13 +81,6 @@ /* file I/O */ #define PATH_MAX 1024 -#define access _access -#define getcwd _getcwd -#define open _open -#define read _read -#define write(fd, p, n) _write(fd, p, n) -#define lseek _lseek -#define close _close #define popen _popen #define pclose _pclose #define R_OK 04 /* read-only (for access()) */