summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authorJoakim Söderberg <joakim.soderberg@gmail.com>2014-01-21 11:30:27 +0100
committerJoakim Söderberg <joakim.soderberg@gmail.com>2014-01-21 11:30:27 +0100
commit4e1439588f742959e0afe871c7473a78bc540cf1 (patch)
treeaea4a21e04fe300e2dc9955c3388693027b2b328 /sample
parent20244671cd3c66ce81ae85dcb9a3f1312c78a25e (diff)
downloadlibevent-4e1439588f742959e0afe871c7473a78bc540cf1.tar.gz
Change all uses of WIN32 to _WIN32
Diffstat (limited to 'sample')
-rw-r--r--sample/dns-example.c2
-rw-r--r--sample/https-client.c12
2 files changed, 7 insertions, 7 deletions
diff --git a/sample/dns-example.c b/sample/dns-example.c
index c4fb64a5..15e48ce4 100644
--- a/sample/dns-example.c
+++ b/sample/dns-example.c
@@ -171,7 +171,7 @@ main(int c, char **v) {
++idx;
}
-#ifdef WIN32
+#ifdef _WIN32
{
WSADATA WSAData;
WSAStartup(0x101, &WSAData);
diff --git a/sample/https-client.c b/sample/https-client.c
index b40f92b9..6a9d1baf 100644
--- a/sample/https-client.c
+++ b/sample/https-client.c
@@ -21,7 +21,7 @@
#include <string.h>
#include <errno.h>
-#ifdef WIN32
+#ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
@@ -196,7 +196,7 @@ main(int argc, char **argv)
if (argc != 2)
syntax();
-#ifdef WIN32
+#ifdef _WIN32
{
WORD wVersionRequested;
WSADATA wsaData;
@@ -210,7 +210,7 @@ main(int argc, char **argv)
return 1;
}
}
-#endif
+#endif // _WIN32
url = argv[1];
http_uri = evhttp_uri_parse(url);
@@ -265,7 +265,7 @@ main(int argc, char **argv)
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.
@@ -298,7 +298,7 @@ main(int argc, char **argv)
* "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();
@@ -359,7 +359,7 @@ main(int argc, char **argv)
evhttp_connection_free(evcon);
event_base_free(base);
-#ifdef WIN32
+#ifdef _WIN32
WSACleanup();
#endif