关于_MSC_VER的说明

关于_MSC_VER的说明

Internal version numbering[edit]
The predefined macro _MSC_VER indicates the major and minor version numbers of the Visual C++ compiler. The macro's value is an integer literal in which the last two digits indicate the minor version number and the preceding digits indicate the major version number.
From Visual Studio 2017, _MSC_VER is incremented monotonically at every Visual C++ toolset update. Thus, for example, the version of MSVC++ 14.1 that ships with Visual Studio 2017 version 15.3.0 sets _MSC_VER to 1911. Microsoft recommends using the >= operator to test the value of _MSC_VER.
Here are values of _MSC_VER for various versions of the Visual C++ compiler:

MSC    1.0   _MSC_VER == 100

MSC    2.0   _MSC_VER == 200

MSC    3.0   _MSC_VER == 300

MSC    4.0   _MSC_VER == 400

MSC    5.0   _MSC_VER == 500

MSC    6.0   _MSC_VER == 600

MSC    7.0   _MSC_VER == 700

MSVC++ 1.0   _MSC_VER == 800

MSVC++ 2.0   _MSC_VER == 900

MSVC++ 4.0   _MSC_VER == 1000 (Developer Studio 4.0)

MSVC++ 4.2   _MSC_VER == 1020 (Developer Studio 4.2)

MSVC++ 5.0   _MSC_VER == 1100 (Visual Studio 97 version 5.0)

MSVC++ 6.0   _MSC_VER == 1200 (Visual Studio 6.0 version 6.0)

MSVC++ 7.0   _MSC_VER == 1300 (Visual Studio .NET 2002 version 7.0)

MSVC++ 7.1   _MSC_VER == 1310 (Visual Studio .NET 2003 version 7.1)

MSVC++ 8.0   _MSC_VER == 1400 (Visual Studio 2005 version 8.0)

MSVC++ 9.0   _MSC_VER == 1500 (Visual Studio 2008 version 9.0)

MSVC++ 10.0  _MSC_VER == 1600 (Visual Studio 2010 version 10.0)

MSVC++ 11.0  _MSC_VER == 1700 (Visual Studio 2012 version 11.0)

MSVC++ 12.0  _MSC_VER == 1800 (Visual Studio 2013 version 12.0)

MSVC++ 14.0  _MSC_VER == 1900 (Visual Studio 2015 version 14.0)

MSVC++ 14.1  _MSC_VER == 1910 (Visual Studio 2017 version 15.0)

MSVC++ 14.11 _MSC_VER == 1911 (Visual Studio 2017 version 15.3)

MSVC++ 14.12 _MSC_VER == 1912 (Visual Studio 2017 version 15.5

MSVC++ 14.13 _MSC_VER == 1913 (Visual Studio 2017 version 15.6)

MSVC++ 14.14 _MSC_VER == 1914 (Visual Studio 2017 version 15.7)

/* Copyright (c) 2009-2017 Dave Gamble and cJSON contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /* cJSON */ /* JSON parser in C. */ /* disable warnings about old C89 functions in MSVC */ #if !defined(_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) #define _CRT_SECURE_NO_DEPRECATE #endif #ifdef __GNUC__ #pragma GCC visibility push(default) #endif #if defined(_MSC_VER) #pragma warning (push) /* disable warning about single line comments in system headers */ #pragma warning (disable : 4001) #endif #include <string.h> #include <stdio.h> #include <math.h> #include <stdlib.h> #include <float.h> #include <limits.h> #include <ctype.h> #ifdef ENABLE_LOCALES #include <locale.h> #endif #if defined(_MSC_VER) #pragma warning (pop) #endif #ifdef __GNUC__ #pragma GCC visibility pop #endif #include "JSON.h" /* define our own boolean type */ #define true ((cJSON_bool)1) #define false ((cJSON_bool)0) typedef struct { const unsigned char *json; size_t position; }
最新发布
04-03
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值