summaryrefslogtreecommitdiffstats
path: root/qtools/qglobal.h
diff options
context:
space:
mode:
Diffstat (limited to 'qtools/qglobal.h')
-rw-r--r--qtools/qglobal.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/qtools/qglobal.h b/qtools/qglobal.h
index 0123dee..0f0204e 100644
--- a/qtools/qglobal.h
+++ b/qtools/qglobal.h
@@ -262,6 +262,19 @@
#error "Qt has not been tested with this compiler - talk to qt-bugs@trolltech.com"
#endif
+// detect Microsoft compiler version
+#ifdef _CC_MSVC_
+#if _MSC_VER >= 1400
+#define _CC_V2005
+#elif _MSC_VER >= 1310
+#define _CC_V2003
+#elif _MSC_VER > 1300
+#define _CC_V2002
+#else
+#define _CC_V1998
+#endif
+#endif
+
#ifndef Q_PACKED
#define Q_PACKED
#endif