Fix building for Windows MSVC with recent toolchain

This commit is contained in:
Frederik Seiffert 2021-08-18 18:58:12 +02:00 committed by Frederik Seiffert
parent 1fe008304a
commit 170701f7e6

View file

@ -85,7 +85,7 @@
# endif
#endif
/* Redefine some function names when using the MSVC ABI on Windows.
/* Redefine some functions/variables when using the MSVC ABI on Windows.
*/
#ifdef _MSC_VER
# include <io.h>
@ -93,6 +93,12 @@
# define strcasecmp _stricmp
# define write(fd, buffer, count) _write(fd, buffer, count)
# define close(fd) _close(fd)
// time.h
# define tzset _tzset
# define tzname _tzname
# define timezone _timezone
# define daylight _daylight
#endif
#endif /* COMMON_H */