From f23ddbdba19f343868cf39f804c27a12c7aa5f3a Mon Sep 17 00:00:00 2001 From: nils Date: Sun, 10 Dec 2006 13:33:34 +0000 Subject: [PATCH] make it work with my compiler, add missing parenthesis git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3074 c6295689-39f2-0310-b995-f0e70906c6a9 --- src/pkcs11/pkcs11.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pkcs11/pkcs11.h b/src/pkcs11/pkcs11.h index 1686d8d4..e61756f5 100644 --- a/src/pkcs11/pkcs11.h +++ b/src/pkcs11/pkcs11.h @@ -86,7 +86,7 @@ extern "C" { #endif -#if CRYPTOKI_COMPAT +#ifdef CRYPTOKI_COMPAT /* If we are in compatibility mode, switch all exposed names to the PKCS #11 variant. There are corresponding #undefs below. */ @@ -308,7 +308,7 @@ typedef unsigned long ck_object_class_t; #define CKO_HW_FEATURE (5) #define CKO_DOMAIN_PARAMETERS (6) #define CKO_MECHANISM (7) -#define CKO_VENDOR_DEFINED (unsigned long) (1 << 31)) +#define CKO_VENDOR_DEFINED ((unsigned long) (1 << 31)) typedef unsigned long ck_hw_feature_type_t; @@ -1160,7 +1160,7 @@ struct ck_c_initialize_args /* Compatibility layer. */ -#if CRYPTOKI_COMPAT +#ifdef CRYPTOKI_COMPAT #undef CK_DEFINE_FUNCTION #define CK_DEFINE_FUNCTION(retval, name) retval CK_SPEC name @@ -1329,4 +1329,4 @@ typedef struct ck_c_initialize_args *CK_C_INITIALIZE_ARGS_PTR; } #endif -#endif /* PKCS11_H */ \ No newline at end of file +#endif /* PKCS11_H */