-
MSVC++ 4.x _MSC_VER == 1000 MSVC++ 5.0 _MSC_VER == 1100 MSVC++ 6.0 _MSC_VER == 1200 MSVC++ 7.0 _MSC_VER == 1300 MSVC++ 7.1 _MSC_VER == 1310 (Visual Studio 2003) MSVC++ 8.0 _MSC_VER == 1400 (Visual Studio 2005) MSVC++ 9.0 _MSC_VER == 1500 (Visual Studio 2008) MSVC++ 10.0 _MSC_VER == 1600 (Visual Studio 2010) MSVC++ 11.0 _MSC_VER == 1700 (Visual Studio 2012) MSVC++ 12.0 _MSC_VER == 1800 (Visual Studio 2013) MSVC++ 14.0 _MSC_VER == 1900 (Visual Studio 2015) MSVC++ 14.1 _MSC_VER == 1911 (Visual Studio 2017)
-
c:/program files (x86)/microsoft visual studio 11.0/vc/bin>cl /?
-
Microsoft (R) C/C++ Optimizing Compiler Version 17.00.50727.1 for x86
-
.....
-
-
#if (_MSC_VER == 1500)
-
// ... Do VC9/Visual Studio 2008 specific stuff
-
#elif (_MSC_VER == 1600)
-
// ... Do VC10/Visual Studio 2010 specific stuff
-
#elif (_MSC_VER == 1700)
-
// ... Do VC11/Visual Studio 2012 specific stuff
-
#endif
-
-
#if (_MSC_VER >= 1500 && _MSC_VER <= 1600)
-
// ... Do VC9/Visual Studio 2008 specific stuff
-
#endif
-
-
//******************************************************************************
-
// Automated platform detection
-
//******************************************************************************
-
-
// _WIN32 is used by
-
// Visual C++
-
#ifdef _WIN32
-
#define __NT__
-
#endif
-
-
// Define __MAC__ platform indicator
-
#ifdef macintosh
-
#define __MAC__
-
#endif
-
-
// Define __OSX__ platform indicator
-
#ifdef __APPLE__
-
#define __OSX__
-
#endif
-
-
// Define __WIN16__ platform indicator
-
#ifdef _Windows_
-
#ifndef __NT__
-
#define __WIN16__
-
#endif
-
#endif
-
-
// Define Windows CE platform indicator
-
#ifdef WIN32_PLATFORM_HPCPRO
-
#define __WINCE__
-
#endif
-
-
#if (_WIN32_WCE == 300) // for Pocket PC
-
#define __POCKETPC__
-
#define __WINCE__
-
//#if (_WIN32_WCE == 211) // for Palm-size PC 2.11 (Wyvern)
-
//#if (_WIN32_WCE == 201) // for Palm-size PC 2.01 (Gryphon)
-
//#ifdef WIN32_PLATFORM_HPC2000 // for H/PC 2000 (Galileo)
-
#endif
MSVC 版本号对应
最新推荐文章于 2023-04-09 12:33:34 发布