mirror of
https://gitlab.xiph.org/xiph/icecast-common.git
synced 2025-02-02 15:07:47 -05:00
Prevent various redefined definitions in win32-specific code
From: Erik van Pienbroek <epienbro@fedoraproject.org> Date: Mon, 22 Dec 2014 18:02:09 +0100
This commit is contained in:
parent
8685e6ed5a
commit
536582171d
@ -41,10 +41,6 @@
|
||||
#include <avl/avl.h>
|
||||
#include "httpp.h"
|
||||
|
||||
#if defined(_WIN32) && !defined(HAVE_STRCASECMP)
|
||||
#define strcasecmp stricmp
|
||||
#endif
|
||||
|
||||
#define MAX_HEADERS 32
|
||||
|
||||
/* internal functions */
|
||||
|
@ -53,14 +53,6 @@
|
||||
#include <netdb.h>
|
||||
#else
|
||||
#include <winsock2.h>
|
||||
#define vsnprintf _vsnprintf
|
||||
#define EINPROGRESS WSAEINPROGRESS
|
||||
#define ENOTSOCK WSAENOTSOCK
|
||||
#define EWOULDBLOCK WSAEWOULDBLOCK
|
||||
#define EALREADY WSAEALREADY
|
||||
#define socklen_t int
|
||||
#ifndef __MINGW32__
|
||||
#define va_copy(ap1, ap2) memcpy(&ap1, &ap2, sizeof(va_list))
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user