I am not sure about the standards. Please check if this is right. I am proposing this patch based on some hints. 1. Not defined in winsdk's ucrt directory, only present in km. 2. MS docs says "This function is obsolete. Beginning in Visual Studio 2015, it is not available in the CRT." 3. This fixes building shared library in https://github.com/gpac/gpac.git project.
From 901ffe86d5bf2f843e39dc90c4aa1fb077100bf0 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath <[email protected]> Date: Fri, 7 Apr 2023 21:54:01 +0530 Subject: [PATCH] headers: Do not define _TWO_DIGIT_EXPONENT in ucrt
_TWO_DIGIT_EXPONENT is used with _set_output_format which is not present in ucrt. Signed-off-by: Biswapriyo Nath <[email protected]> --- mingw-w64-headers/crt/stdio.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mingw-w64-headers/crt/stdio.h b/mingw-w64-headers/crt/stdio.h index d37e2e3..5a121bb 100644 --- a/mingw-w64-headers/crt/stdio.h +++ b/mingw-w64-headers/crt/stdio.h @@ -146,7 +146,10 @@ extern FILE (* __MINGW_IMP_SYMBOL(_iob))[]; /* A pointer to an array of FILE */ #endif #endif +/* used with _set_output_format which is not present in ucrt */ +#ifndef _UCRT #define _TWO_DIGIT_EXPONENT 0x1 +#endif #if __MINGW_FORTIFY_LEVEL > 0 __mingw_bos_declare; -- 2.40.0
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
