Skip to content

Commit

Permalink
hcrypto: Fix Win 32 cpp checks
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
SimonWilkinson committed Nov 9, 2016
1 parent ac9109f commit 67ac841
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/hcrypto/evp.c
Expand Up @@ -44,7 +44,7 @@
#include <evp.h>
#include <evp-hcrypto.h>
#include <evp-cc.h>
#if _WIN32
#if defined(_WIN32)
#include <evp-w32.h>
#endif
#include <evp-pkcs11.h>
Expand Down
2 changes: 1 addition & 1 deletion lib/hcrypto/test_bulk.c
Expand Up @@ -39,7 +39,7 @@
#include <evp.h>
#include <evp-hcrypto.h>
#include <evp-cc.h>
#if _WIN32
#if defined(_WIN32)
#include <evp-w32.h>
#endif
#include <evp-pkcs11.h>
Expand Down
2 changes: 1 addition & 1 deletion lib/hcrypto/test_cipher.c
Expand Up @@ -41,7 +41,7 @@
#include <evp.h>
#include <evp-hcrypto.h>
#include <evp-cc.h>
#if _WIN32
#if defined(_WIN32)
#include <evp-w32.h>
#endif
#include <evp-pkcs11.h>
Expand Down

0 comments on commit 67ac841

Please sign in to comment.