Skip to content

Commit 2843e7d

Browse files
TylerMSFTTylerMSFT
authored andcommitted
formatting
1 parent 6b87e6b commit 2843e7d

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

docs/overview/compiler-versions.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
description: "Learn more about the microsoft visual c++ compiler versioning story"
2+
description: "Learn more about Microsoft Visual C++ compiler versioning."
33
title: "Microsoft Visual C++ compiler versions (Visual C++)"
44
ms.date: 02/08/2024
55
ms.service: "visual-cpp"
@@ -11,12 +11,13 @@ helpviewer_keywords: ["Visual C++, platforms supported", "platforms [C++]"]
1111
The Microsoft Visual C++ compiler version consists of a major and minor version number, which is reflected in the [`_MSC_VER`](../preprocessor/predefined-macros.md) macro as a number, such as 1938.
1212

1313
Starting with Visual Studio 15:
14+
1415
- each major release increments the 'hundreds' place of the version number.
1516
- each minor release increments the 'ones' place of the version number.
1617

17-
For example, the major version changed between VS 2013 and VS 2015, reflected by a change in `_MSC_VER` from 1800 to 1900. An example of a minor change is from 17.1 to 17.2, when `_MSC_VER` changed from 1931 to 1932.
18+
For example, the major version changed between Visual Studio 2013 and Visual Studio 2015, reflected by a change in `_MSC_VER` from 1800 to 1900. An example of a minor change is from 17.1 to 17.2, when `_MSC_VER` changed from 1931 to 1932.
1819

19-
The following table lists the Visual C++ compiler version numbers and the Visual Studio version in which they were released:
20+
The following table lists the Visual C++ compiler `_MSC_VER` for each Visual Studio release:
2021

2122
| Visual Studio version | `_MSC_VER` |
2223
|--|--|

docs/overview/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ items:
2525
- name: Supported target platforms
2626
href: ../overview/supported-platforms-visual-cpp.md
2727
- name: C++ Compiler versions
28-
href: cpp-compiler-versions.md
28+
href: compiler-versions.md
2929
- name: C++ Tools and Features in Visual Studio Editions
3030
href: ../overview/visual-cpp-tools-and-features-in-visual-studio-editions.md
3131
- name: Install C11 and C17 support in Visual Studio

docs/preprocessor/predefined-macros.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ The compiler supports these predefined macros specified by the ISO C99, C11, C17
6060

6161
## Microsoft-specific predefined macros
6262

63-
MSVC supports these additional predefined macros.
63+
MSVC supports other predefined macros:
6464

6565
- `__ATOM__` Defined as 1 when the [`/favor:ATOM`](../build/reference/favor-optimize-for-architecture-specifics.md) compiler option is set and the compiler target is x86 or x64. Otherwise, undefined.
6666

@@ -246,7 +246,7 @@ MSVC supports these additional predefined macros.
246246
247247
- `_MSC_VER` Defined as an integer literal that encodes the major and minor number elements of the compiler's version number. The major number is the first element of the period-delimited version number and the minor number is the second element. For example, if the version number of the Microsoft C/C++ compiler is 17.00.51106.1, the `_MSC_VER` macro evaluates to 1700. Enter `cl /?` at the command line to view the compiler's version number. This macro is always defined.
248248
249-
See [C++ compiler versioning](../overview/cpp-compiler-versioning.md) for more information about the compiler version numbers and the Visual Studio versions they correspond to.
249+
See [C++ compiler versioning](../overview/compiler-versions.md) for more information about the compiler version numbers and the Visual Studio versions they correspond to.
250250
251251
To test for compiler releases or updates in a given version of Visual Studio or after, use the `>=` operator. You can use it in a conditional directive to compare `_MSC_VER` against that known version. If you have several mutually exclusive versions to compare, order your comparisons in descending order of version number. For example, this code checks for compilers released in Visual Studio 2017 and later. Next, it checks for compilers released in or after Visual Studio 2015. Then it checks for all compilers released before Visual Studio 2015:
252252

0 commit comments

Comments
 (0)