$OpenBSD: patch-cryptlib_h,v 1.2 2016/11/22 17:20:25 dcoppa Exp $
--- cryptlib.h.orig	Tue Nov 22 09:16:47 2016
+++ cryptlib.h	Tue Nov 22 09:16:48 2016
@@ -91,7 +91,7 @@ and getting us started on the manual.
 # include <signal.h>
 #endif
 
-#if CRYPTOPP_MSC_VERSION
+#if defined(CRYPTOPP_MSC_VERSION)
 # pragma warning(push)
 # pragma warning(disable: 4127 4189 4702)
 #endif
@@ -442,7 +442,7 @@ class CRYPTOPP_NO_VTABLE NameValuePairs (public)
 	CRYPTOPP_DLL virtual bool GetVoidValue(const char *name, const std::type_info &valueType, void *pValue) const =0;
 };
 
-#if CRYPTOPP_DOXYGEN_PROCESSING
+#if defined(CRYPTOPP_DOXYGEN_PROCESSING)
 
 //! \brief Namespace containing value name definitions.
 //! \details Name is part of the CryptoPP namespace.
@@ -3003,7 +3003,7 @@ typedef AuthenticatedKeyAgreementDomain PK_Authenticat
 
 NAMESPACE_END
 
-#if CRYPTOPP_MSC_VERSION
+#if defined(CRYPTOPP_MSC_VERSION)
 # pragma warning(pop)
 #endif
 
