Skip to content

Commit 54564d9

Browse files
author
Steve Wishnousky
authored
Add legacy_stdio_float_rounding.obj
A new linkopt is included to allow a workaround for customers impacted by the behavior breaking change done to printing floating point values
1 parent 17d8c03 commit 54564d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/c-runtime-library/link-options.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ CLR pure mode versions of these objects are deprecated in Visual Studio 2015 and
1818
|exe_initialize_mta.lib|n/a|Initializes the MTA apartment during EXE startup, which allows the use of COM objects in global smart pointers. Because this option leaks an MTA apartment reference during shutdown, do not use it for DLLs. Linking to this is equivalent to including combase.h and defining _EXE_INITIALIZE_MTA. |
1919
|fp10.obj|n/a|Changes the default precision control to 64 bits. See [Floating-Point Support](../c-runtime-library/floating-point-support.md).|
2020
|invalidcontinue.obj|pinvalidcontinue.obj|Sets a default invalid parameter handler that does nothing, meaning that invalid parameters passed to CRT functions will just set errno and return an error result.|
21+
|legacy_stdio_float_rounding.obj|n/a|Printing floating point values (e.g. with [printf](../c-runtime-library/reference/printf-printf-l-wprintf-wprintf-l.md)) with the Windows 10 19041 Universal C Runtime has been fixed to properly round exactly representable floating point numbers as well as respect the floating point rounding requested with [fesetenv](../c-runtime-library/reference/fesetenv1.md). This behavior update is only available if building with Visual Studio 2019 16.2 and later. Legacy behavior will be used if using an earlier version of Visual Studio or by providing this link option.|
2122
|loosefpmath.obj|n/a|Ensures that floating point code tolerates denormal values.|
2223
|newmode.obj|pnewmode.obj|Causes [malloc](../c-runtime-library/reference/malloc.md) to call the new handler on failure. See [_set_new_mode](../c-runtime-library/reference/set-new-mode.md), [_set_new_handler](../c-runtime-library/reference/set-new-handler.md), [calloc](../c-runtime-library/reference/calloc.md), and [realloc](../c-runtime-library/reference/realloc.md).|
2324
|noarg.obj|pnoarg.obj|Disables all processing of argc and argv.|

0 commit comments

Comments
 (0)