]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/platform.h
more VC6 fixes: nested value must be real classes, not typedefs; skeleton declaration...
[wxWidgets.git] / include / wx / platform.h
index 10f61e6cca83e4ac0bf235e9389dfff7960be11f..35497c53edbb90a91da1b2137db7b59771a22661 100644 (file)
 #define wxNEEDS_CHARPP
 #endif
 
+/*
+   This macro can be used to test the Visual C++ version.
+*/
+#ifndef __VISUALC__
+#   define wxVISUALC_VERSION(major) 0
+#   define wxCHECK_VISUALC_VERSION(major) 0
+#else
+#   define wxVISUALC_VERSION(major) ( (6 + major) * 100 )
+#   define wxCHECK_VISUALC_VERSION(major) ( __VISUALC__ >= wxVISUALC_VERSION(major) )
+#endif
+
 /*
    This macro can be used to check that the version of mingw32 compiler is
    at least maj.min