mirror of
https://gitlab.xiph.org/xiph/icecast-common.git
synced 2024-11-03 04:17:20 -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 <avl/avl.h>
|
||||||
#include "httpp.h"
|
#include "httpp.h"
|
||||||
|
|
||||||
#if defined(_WIN32) && !defined(HAVE_STRCASECMP)
|
|
||||||
#define strcasecmp stricmp
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define MAX_HEADERS 32
|
#define MAX_HEADERS 32
|
||||||
|
|
||||||
/* internal functions */
|
/* internal functions */
|
||||||
|
@ -53,14 +53,6 @@
|
|||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#else
|
#else
|
||||||
#include <winsock2.h>
|
#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
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user