mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-11 05:14:46 -04:00
Some tweaks to Brodie Thesfield's MSVC patch.
svn:r1386
This commit is contained in:
parent
5b5b880be7
commit
a826a75800
@ -332,8 +332,6 @@
|
|||||||
#define _EVENT_socklen_t unsigned int
|
#define _EVENT_socklen_t unsigned int
|
||||||
|
|
||||||
/* Define to `int' if <sys/types.h> does not define. */
|
/* Define to `int' if <sys/types.h> does not define. */
|
||||||
#define _EVENT_ssize_t intptr_t
|
#define _EVENT_ssize_t SSIZE_T
|
||||||
|
|
||||||
#define ssize_t SSIZE_T
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1561,9 +1561,13 @@ class CCodeGenerator:
|
|||||||
pre += ( '#include <stdlib.h>\n'
|
pre += ( '#include <stdlib.h>\n'
|
||||||
'#include <string.h>\n'
|
'#include <string.h>\n'
|
||||||
'#include <assert.h>\n'
|
'#include <assert.h>\n'
|
||||||
|
'#include <event-config.h>\n'
|
||||||
'#include <event2/event.h>\n'
|
'#include <event2/event.h>\n'
|
||||||
'#include <event2/buffer.h>\n'
|
'#include <event2/buffer.h>\n'
|
||||||
'#include <event2/tag.h>\n\n'
|
'#include <event2/tag.h>\n\n'
|
||||||
|
'#ifdef _EVENT___func__\n'
|
||||||
|
'#define __func__ _EVENT___FUNC__\n'
|
||||||
|
'#endif\n\n'
|
||||||
)
|
)
|
||||||
|
|
||||||
for statement in cppdirect:
|
for statement in cppdirect:
|
||||||
|
@ -70,6 +70,9 @@ static int dns_ok = 0;
|
|||||||
static int dns_got_cancel = 0;
|
static int dns_got_cancel = 0;
|
||||||
static int dns_err = 0;
|
static int dns_err = 0;
|
||||||
|
|
||||||
|
/* XXXXX have evutil export this. */
|
||||||
|
int evutil_strcasecmp(const char *, const char *);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
dns_gethostbyname_cb(int result, char type, int count, int ttl,
|
dns_gethostbyname_cb(int result, char type, int count, int ttl,
|
||||||
void *addresses, void *arg)
|
void *addresses, void *arg)
|
||||||
|
@ -28,13 +28,16 @@
|
|||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#define __func__ __FUNCTION__
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
#include "event-config.h"
|
#include "event-config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _EVENT___func__
|
||||||
|
#define __func__ _EVENT___func__
|
||||||
|
#endif
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user