win32: fix warnings

This commit is contained in:
Frederik Seiffert 2021-08-10 17:06:26 +02:00 committed by Frederik Seiffert
parent acde7b062a
commit b2f2a3a429
2 changed files with 4 additions and 0 deletions

View file

@ -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

View file

@ -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)