diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-04-18 13:50:16 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-04-18 13:50:16 -0500 |
commit | cc17d36560e6a3f2db1305559f9e9cacd091a05a (patch) | |
tree | 94500f4bd03f703282cde0ffd3a8521749e35238 | |
parent | 7fcbb68b327fd9d6ba4bb9a29c1d3c9b75bc467a (diff) | |
download | cryptography-cc17d36560e6a3f2db1305559f9e9cacd091a05a.tar.gz cryptography-cc17d36560e6a3f2db1305559f9e9cacd091a05a.tar.bz2 cryptography-cc17d36560e6a3f2db1305559f9e9cacd091a05a.zip |
proper syntax for a preprocessor directive helps
-rw-r--r-- | cryptography/hazmat/bindings/openssl/cms.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cryptography/hazmat/bindings/openssl/cms.py b/cryptography/hazmat/bindings/openssl/cms.py index 62600cb5..4888e5e3 100644 --- a/cryptography/hazmat/bindings/openssl/cms.py +++ b/cryptography/hazmat/bindings/openssl/cms.py @@ -14,7 +14,7 @@ from __future__ import absolute_import, division, print_function INCLUDES = """ -#ifndef OPENSSL_NO_CMS && OPENSSL_VERSION_NUMBER >= 0x0090808fL +#if !defined(OPENSSL_NO_CMS) && OPENSSL_VERSION_NUMBER >= 0x0090808fL #include <openssl/cms.h> #endif """ @@ -52,7 +52,7 @@ CMS_SignerInfo *CMS_add1_signer(CMS_ContentInfo *, X509 *, EVP_PKEY *, """ CUSTOMIZATIONS = """ -#ifndef OPENSSL_NO_CMS && OPENSSL_VERSION_NUMBER >= 0x0090808fL +#if !defined(OPENSSL_NO_CMS) && OPENSSL_VERSION_NUMBER >= 0x0090808fL static const long Cryptography_HAS_CMS = 1; #else static const long Cryptography_HAS_CMS = 0; |