#ifdef CHECK_FUNCTION_EXISTS
-#ifndef WIN32
+#ifndef _WIN32
char CHECK_FUNCTION_EXISTS();
#endif
#else
int main(int ac, char*av[]){
#endif
-#ifdef WIN32
+#ifdef _WIN32
void * p = &CHECK_FUNCTION_EXISTS;
#else
CHECK_FUNCTION_EXISTS();
int r;
if (!buflen)
return 0;
-#if defined(_MSC_VER) || defined(WIN32)
+#if defined(_MSC_VER) || defined(_WIN32)
r = _vsnprintf(buf, buflen, format, ap);
if (r < 0)
r = _vscprintf(format, ap);
++idx;
}
-#ifdef WIN32
+#ifdef _WIN32
{
WSADATA WSAData;
WSAStartup(0x101, &WSAData);
#include <string.h>
#include <errno.h>
-#ifdef WIN32
+#ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
if (argc != 2)
syntax();
-#ifdef WIN32
+#ifdef _WIN32
{
WORD wVersionRequested;
WSADATA wsaData;
return 1;
}
}
-#endif
+#endif // _WIN32
url = argv[1];
http_uri = evhttp_uri_parse(url);
if (!ssl_ctx)
die_openssl("SSL_CTX_new");
- #ifndef WIN32
+ #ifndef _WIN32
/* TODO: Add certificate loading on Windows as well */
/* Attempt to use the system's trusted root certificates.
* "wrapping" OpenSSL's routine, not replacing it. */
SSL_CTX_set_cert_verify_callback (ssl_ctx, cert_verify_callback,
(void *) host);
- #endif // not WIN32
+ #endif // not _WIN32
// Create event base
base = event_base_new();
evhttp_connection_free(evcon);
event_base_free(base);
-#ifdef WIN32
+#ifdef _WIN32
WSACleanup();
#endif
#endif
#include <errno.h>
-#ifdef WIN32
+#ifdef _WIN32
#include <getopt.h>
#endif
struct timeval *tv;
int num_pipes = 100;
-#ifdef WIN32
+#ifdef _WIN32
WSADATA WSAData;
WSAStartup(0x101, &WSAData);
#endif
tv->tv_sec * 1000000L + tv->tv_usec);
}
-#ifdef WIN32
+#ifdef _WIN32
WSACleanup();
#endif
}
event_base_dispatch(base);
-#ifdef WIN32
+#ifdef _WIN32
WSACleanup();
#endif