fix: clang compilation
diff --git a/include/cose/cose_configure.h.in b/include/cose/cose_configure.h.in
index 5d02d5c..1afa999 100644
--- a/include/cose/cose_configure.h.in
+++ b/include/cose/cose_configure.h.in
@@ -8,17 +8,20 @@
 #cmakedefine COSE_C_USE_OPENSSL
 #cmakedefine COSE_C_USE_BCRYPT
 
+// make sure we only use one crypto library
 #if defined(COSE_C_USE_MBEDTLS)
-#if defined(COSE_C_USE_OPENSSL) || defined(COSE_C_USE_BCRYPT)
-#error Only Define One Crypto Package
-#endif
+	#if defined(COSE_C_USE_OPENSSL) || defined(COSE_C_USE_BCRYPT)
+		#error Only Define One Crypto Package
+	#endif
 #elif defined(COSE_C_USE_BCRYPT)
-#if defined(COSE_C_USE_OPENSSL)
-#error Only Define One Crypto Package
+	#if defined(COSE_C_USE_OPENSSL)
+		#error Only Define One Crypto Package
+	#endif
 #endif
-#elif !defined(COSE_C_USE_OPENSSL)
-#include <openssl/opensslv.h>
-#define COSE_C_USE_OPENSSL
+
+// verify that we have a supported version of openssl
+#if defined(COSE_C_USE_OPENSSL)
+	#include <openssl/opensslv.h>
 #endif
 
 //
@@ -141,16 +144,16 @@
 #define USE_ECDSA_SHA_256
 #define USE_ECDSA_SHA_384
 #define USE_ECDSA_SHA_512
-#if !defined(COSE_C_USE_MBEDTLS)
-//  MBEDTLS currently supports ECDH for X25519 but not EdDSA
-#if OPENSSL_VERSION_NUMBER > 0x10100000L
-// Requires OPEN SSL 1.1.1 to build
-#define USE_EDDSA
-#else
-#define STRINGIFY(x) #x
-#define TOSTRING(x) STRINGIFY(x)
-#pragma message("OPENSSL VERSION IS " OPENSSL_VERSION_TEXT)
-#endif
+#if defined(COSE_C_USE_OPENSSL)
+	//  MBEDTLS currently supports ECDH for X25519 but not EdDSA
+	#if OPENSSL_VERSION_NUMBER > 0x10100000L
+		// Requires OPEN SSL 1.1.1 to build
+		#define USE_EDDSA
+	#else
+		#define STRINGIFY(x) #x
+		#define TOSTRING(x) STRINGIFY(x)
+		#pragma message("OPENSSL VERSION IS " OPENSSL_VERSION_TEXT)
+	#endif
 #endif	// !defined (COSE_C_USE_MBEDTLS)
 
 //