Skip to content

Commit

Permalink
remove POSIX aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiud committed Dec 19, 2023
1 parent 931323d commit e9d5e78
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/windows/port.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
#include <direct.h> /* for _getcwd() */
#include <process.h> /* for _getpid() */
#include <cstdarg> /* template_dictionary.cc uses va_copy */
#include <cstdio> /* read in vsnprintf decl. before redifining it */
#include <cstdio> /* read in vsnprintf decl. before redefining it */
#include <cstring> /* for _strnicmp(), strerror_s() */
#include <ctime> /* for localtime_s() */
/* Note: the C++ #includes are all together at the bottom. This file is
Expand All @@ -80,15 +80,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()) */
#define S_ISDIR(m) (((m) & _S_IFMT) == _S_IFDIR)

Expand Down

0 comments on commit e9d5e78

Please sign in to comment.