1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-08 15:29:37 +00:00

sim65: Build was failing on Windows, too.

Microsoft loves putting underscores in front of everything!
This commit is contained in:
Patrick Pelletier 2018-08-17 11:53:19 -07:00 committed by Oliver Schmidt
parent 12fbdbf418
commit a7d158e077

View File

@ -49,10 +49,18 @@
# include <unistd.h>
#endif
#ifndef S_IREAD
# define S_IREAD S_IRUSR
# ifdef _WIN32
# define S_IREAD _S_IREAD
# else
# define S_IREAD S_IRUSR
# endif
#endif
#ifndef S_IWRITE
# define S_IWRITE S_IWUSR
# ifdef _WIN32
# define S_IWRITE _S_IWRITE
# else
# define S_IWRITE S_IWUSR
# endif
#endif
/* common */