mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Fix building for Windows MSVC with recent toolchain
This commit is contained in:
parent
1fe008304a
commit
170701f7e6
1 changed files with 7 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue