mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
win32: fix warnings
This commit is contained in:
parent
acde7b062a
commit
b2f2a3a429
2 changed files with 4 additions and 0 deletions
|
@ -51,6 +51,9 @@
|
|||
#include <stdio.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifdef close
|
||||
#undef close // also defined in common.h
|
||||
#endif
|
||||
#define close closesocket
|
||||
#define OPTLEN int
|
||||
#else
|
||||
|
|
|
@ -88,6 +88,7 @@
|
|||
/* Redefine some function names when using the MSVC ABI on Windows.
|
||||
*/
|
||||
#ifdef _MSC_VER
|
||||
# include <io.h>
|
||||
# define strncasecmp _strnicmp
|
||||
# define strcasecmp _stricmp
|
||||
# define write(fd, buffer, count) _write(fd, buffer, count)
|
||||
|
|
Loading…
Reference in a new issue