From 67ac841f8f2cbd1adee87f8db731aedfe65043b5 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Wed, 9 Nov 2016 15:35:05 +0000 Subject: [PATCH] hcrypto: Fix Win 32 cpp checks The correct test for a windows build is if defined(_WIN32), not just if _WIN32. Fix a few places in the build which do the wrong thing, as it gives compiler warnings. --- lib/hcrypto/evp.c | 2 +- lib/hcrypto/test_bulk.c | 2 +- lib/hcrypto/test_cipher.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/hcrypto/evp.c b/lib/hcrypto/evp.c index 70eab2ef9..57c954dbf 100644 --- a/lib/hcrypto/evp.c +++ b/lib/hcrypto/evp.c @@ -44,7 +44,7 @@ #include #include #include -#if _WIN32 +#if defined(_WIN32) #include #endif #include diff --git a/lib/hcrypto/test_bulk.c b/lib/hcrypto/test_bulk.c index 3d5efe910..e3737fd1e 100644 --- a/lib/hcrypto/test_bulk.c +++ b/lib/hcrypto/test_bulk.c @@ -39,7 +39,7 @@ #include #include #include -#if _WIN32 +#if defined(_WIN32) #include #endif #include diff --git a/lib/hcrypto/test_cipher.c b/lib/hcrypto/test_cipher.c index b6b6c169a..0131e148b 100644 --- a/lib/hcrypto/test_cipher.c +++ b/lib/hcrypto/test_cipher.c @@ -41,7 +41,7 @@ #include #include #include -#if _WIN32 +#if defined(_WIN32) #include #endif #include