Cleaned up libircclient a bit - submitted patch to the author.

This commit is contained in:
lotodore
2008-03-22 23:39:24 +00:00
parent ea98054050
commit 962cf172ff
3 changed files with 6 additions and 7 deletions
@@ -51,6 +51,10 @@
#else
#include <winsock2.h>
#include <ws2tcpip.h>
#if defined (ENABLE_IPV6)
typedef int (WSAAPI * getaddrinfo_ptr_t) (const char *, const char* , const struct addrinfo *, struct addrinfo **);
typedef void (WSAAPI * freeaddrinfo_ptr_t) (struct addrinfo*);
#endif
#endif
#ifdef __cplusplus
+2
View File
@@ -14,6 +14,8 @@
* $Id: colors.c 42 2004-10-10 16:16:15Z gyunaev $
*/
#include <ctype.h>
#define LIBIRC_COLORPARSER_BOLD (1<<1)
#define LIBIRC_COLORPARSER_UNDERLINE (1<<2)
#define LIBIRC_COLORPARSER_REVERSE (1<<3)
-7
View File
@@ -27,7 +27,6 @@
#ifdef _MSC_VER
/*
* The debugger of MSVC 2005 does not like strdup.
* It complains about heap corruption when free is called.
* Use _strdup instead.
@@ -188,12 +187,6 @@ int irc_connect (irc_session_t * session,
}
#if defined (ENABLE_IPV6) && defined (_WIN32)
typedef int (WSAAPI * getaddrinfo_ptr_t) (const char *, const char* , const struct addrinfo *, struct addrinfo **);
typedef void (WSAAPI * freeaddrinfo_ptr_t) (struct addrinfo*);
#endif
int irc_connect6 (irc_session_t * session,
const char * server,
unsigned short port,