$OpenBSD: patch-algparam_h,v 1.5 2016/11/22 17:20:25 dcoppa Exp $
--- algparam.h.orig	Tue Nov 22 09:16:47 2016
+++ algparam.h	Tue Nov 22 09:16:48 2016
@@ -12,7 +12,7 @@
 #include "cryptlib.h"
 
 // TODO: fix 6011 when the API/ABI can change
-#if (CRYPTOPP_MSC_VERSION >= 1400)
+#if defined(CRYPTOPP_MSC_VERSION) && (CRYPTOPP_MSC_VERSION >= 1400)
 # pragma warning(push)
 # pragma warning(disable: 6011 28193)
 #endif
@@ -571,7 +571,7 @@ AlgorithmParameters MakeParameters(const char *name, c
 #define CRYPTOPP_SET_FUNCTION_ENTRY2(name1, name2)	(Name::name1(), Name::name2(), &ThisClass::Set##name1##And##name2)
 
 // TODO: fix 6011 when the API/ABI can change
-#if (CRYPTOPP_MSC_VERSION >= 1400)
+#if defined(CRYPTOPP_MSC_VERSION) && (CRYPTOPP_MSC_VERSION >= 1400)
 # pragma warning(pop)
 #endif
 
