Skip to content

Commit 37242fd

Browse files
TylerMSFTTylerMSFT
authored andcommitted
update version
1 parent 7766a30 commit 37242fd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/c-runtime-library/global-state.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Global state in the CRT"
33
description: "Describes how shared global state is handled in the Microsoft Universal C Runtime."
44
ms.topic: "conceptual"
5-
ms.date: "04/02/2020"
5+
ms.date: "10/02/2020"
66
helpviewer_keywords: ["CRT global state"]
77
---
88

@@ -26,7 +26,7 @@ The OS-specific versions of these functions are in `ucrt.osmode.lib`. For exampl
2626
There are two ways to isolate your component's CRT state from an app's CRT state:
2727

2828
- Statically link your component by using compiler options /MT (release) or MTd (debug). For details, see [/MD, /MT, /LD](../build/reference/md-mt-ld-use-run-time-library.md). Note that static linking can greatly increase binary size.
29-
- Starting with Windows 10 20H2, get CRT state isolation by dynamically linking to the CRT but call the OS-mode exports (the functions that begin with _o_). To call the OS-mode exports, statically link as before, but ignore the static UCRT by using linker option `/NODEFAULTLIB:libucrt.lib` (release) or `/NODEFAULTLIB:libucrtd.lib` (debug) See [/NODEFAULTLIB (Ignore Libraries)](../build/reference/nodefaultlib-ignore-libraries.md) for details. And add `ucrt.osmode.lib` to the linker input.
29+
- Starting with Windows 10 version 2004, get CRT state isolation by dynamically linking to the CRT but call the OS-mode exports (the functions that begin with _o_). To call the OS-mode exports, statically link as before, but ignore the static UCRT by using linker option `/NODEFAULTLIB:libucrt.lib` (release) or `/NODEFAULTLIB:libucrtd.lib` (debug) See [/NODEFAULTLIB (Ignore Libraries)](../build/reference/nodefaultlib-ignore-libraries.md) for details. And add `ucrt.osmode.lib` to the linker input.
3030

3131
> [!Note]
3232
> In source code, write `setlocale()`, not `_o_setlocale()`. When you link against `ucrt.osmode.lib`, the linker will automatically substitute the OS-specific version of the function. That is, `setlocale()` will be substituted with `_o_setlocale()`.

0 commit comments

Comments
 (0)