Mercurial > hg > orthanc
diff Core/Pkcs11.h @ 2137:595cf22b3e7e
safety checks of macros
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 09 Nov 2016 15:07:50 +0100 |
parents | dd609a99d39a |
children | 39f4207727db |
line wrap: on
line diff
--- a/Core/Pkcs11.h Wed Nov 09 14:08:05 2016 +0100 +++ b/Core/Pkcs11.h Wed Nov 09 15:07:50 2016 +0100 @@ -32,6 +32,14 @@ #pragma once +#if !defined(ORTHANC_ENABLE_PKCS11) +# error The macro ORTHANC_ENABLE_PKCS11 must be defined +#endif + +#if !defined(ORTHANC_ENABLE_SSL) +# error The macro ORTHANC_ENABLE_SSL must be defined +#endif + #if ORTHANC_ENABLE_PKCS11 != 1 || ORTHANC_ENABLE_SSL != 1 # error This file cannot be used if OpenSSL or PKCS#11 support is disabled #endif