From 7b99a6d0604dc15ee9a7e4affa6a497852ee73a4 Mon Sep 17 00:00:00 2001 From: Frank Wagner Date: Mon, 7 Jun 2021 23:19:51 +0200 Subject: [PATCH 1/2] define _NO_CRT_STDIO_INLINE --- datapath-windows/ovsext/precomp.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/datapath-windows/ovsext/precomp.h b/datapath-windows/ovsext/precomp.h index 14f6843d3a9..baaf55b8c0d 100644 --- a/datapath-windows/ovsext/precomp.h +++ b/datapath-windows/ovsext/precomp.h @@ -14,6 +14,15 @@ * limitations under the License. */ +/* +* define _NO_CRT_STDIO_INLINE +* This this a workaround for a issue with Visual Studio 2019 +* (noticed first with VS 16.10). +* LNK errors like this: +* __stdio_common_vswprintf referenced in function _vsnwprintf_l +*/ +#define _NO_CRT_STDIO_INLINE 1 + #include #include #include From f70453bcbe682ab0992a1a768a4e5f2931914d0b Mon Sep 17 00:00:00 2001 From: Frank Wagner Date: Mon, 7 Jun 2021 23:54:15 +0200 Subject: [PATCH 2/2] fixed typo --- datapath-windows/ovsext/precomp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datapath-windows/ovsext/precomp.h b/datapath-windows/ovsext/precomp.h index baaf55b8c0d..41e86771f92 100644 --- a/datapath-windows/ovsext/precomp.h +++ b/datapath-windows/ovsext/precomp.h @@ -16,7 +16,7 @@ /* * define _NO_CRT_STDIO_INLINE -* This this a workaround for a issue with Visual Studio 2019 +* This is a workaround for a issue with Visual Studio 2019 * (noticed first with VS 16.10). * LNK errors like this: * __stdio_common_vswprintf referenced in function _vsnwprintf_l