$OpenBSD: patch-stdcpp_h,v 1.4 2016/11/22 17:20:25 dcoppa Exp $
--- stdcpp.h.orig	Tue Nov 22 09:55:43 2016
+++ stdcpp.h	Tue Nov 22 09:56:58 2016
@@ -1,7 +1,7 @@
 #ifndef CRYPTOPP_STDCPP_H
 #define CRYPTOPP_STDCPP_H
 
-#if _MSC_VER >= 1500
+#if (defined(_MSC_VER) && _MSC_VER >= 1500)
 #define _DO_NOT_DECLARE_INTERLOCKED_INTRINSICS_IN_MEMORY
 #include <intrin.h>
 #endif
@@ -28,7 +28,7 @@ namespace std {
 #endif
 
 // make_unchecked_array_iterator
-#if _MSC_VER >= 1600
+#if (defined(_MSC_VER) && _MSC_VER >= 1600)
 #include <iterator>
 #endif
 
