[PATCH 07/50] [windows] Macros for MSVC Version


Michael Schonberg <mschonberg@...>
 

From: Mike Schonberg <mschonberg@...>

These are necessary to accomodate different version of Visual Studio.

Signed-off-by: Mike Schonberg <mschonberg@...>
---
common/c_cpp/src/c/windows/wombat/targetsxs.h | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/common/c_cpp/src/c/windows/wombat/targetsxs.h b/common/c_cpp/src/c/windows/wombat/targetsxs.h
index a8d8280..2341000 100644
--- a/common/c_cpp/src/c/windows/wombat/targetsxs.h
+++ b/common/c_cpp/src/c/windows/wombat/targetsxs.h
@@ -1,6 +1,15 @@
#ifndef _WOMBAT_TARGETSXS_H
#define _WOMBAT_TARGETSXS_H

+#if (_MSC_VER >= 1600 && _MSC_VER < 1700)
+#define VC10 1
+#elif (_MSC_VER >= 1600 && _MSC_VER < 1500)
+#define VC9 1
+#elif (_MSC_VER >= 1400 && _MSC_VER < 1500)
+#define VC8 1
+#elif (_MSC_VER >= 1400 && _MSC_VER < 1400)
+#define VC7 1
+#endif
#ifndef VC7

#ifdef VC8
--
1.7.7.6