#include <cm_dir.h>
#ifdef __MINGW32__
+#ifndef NO_GETADDRINFO
#include <ws2tcpip.h>
#include <wspiapi.h>
+#endif
#include <winsock2.h>
#include <process.h>
#include <windows.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
+#ifndef NO_GETADDRINFO
#include <netdb.h>
#endif
+#endif
#ifdef __HAIKU__
#include <OS.h>
char address[513];
address[0] = 0;
+#ifndef NO_GETADDRINFO
struct sockaddr* sa = (struct sockaddr*)&addr;
getnameinfo(sa, sizeof(addr), address, 512, NULL, 0, NI_NUMERICHOST);
+#endif
struct tw_http_request req;
struct tw_http_response res;
extern "C" {
#endif
-#define TW_VERSION "1.08\0"
+#define TW_VERSION "1.08A\0"
const char* tw_get_version(void);
const char* tw_get_platform(void);
"Windows"
#elif defined(__HAIKU__)
"Haiku"
+#elif defined(__CYGWIN__)
+ "Cygwin"
#else
"Unix"
#endif
#undef NO_SSL
#define USE_POLL
#define HAS_CHROOT
+#undef NO_GETADDRINFO
/* DO NOT EDIT BELOW THIS LINE */