Jacek Caban : corecrt_stdio_config.h: Add new header file.

Alexandre Julliard julliard at winehq.org
Sun Feb 16 15:23:58 CST 2020


Module: wine
Branch: master
Commit: 44c863bec4c568ef2be6250c01db053fd44b4b7c
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=44c863bec4c568ef2be6250c01db053fd44b4b7c

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Fri Feb 14 15:40:43 2020 +0100

corecrt_stdio_config.h: Add new header file.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 include/Makefile.in                   |  1 +
 include/msvcrt/corecrt_stdio_config.h | 30 ++++++++++++++++++++++++++++++
 include/msvcrt/corecrt_wstdio.h       |  1 +
 3 files changed, 32 insertions(+)

diff --git a/include/Makefile.in b/include/Makefile.in
index 6a822273a9..0e5dd475e0 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -423,6 +423,7 @@ SOURCES = \
 	msvcrt/assert.h \
 	msvcrt/conio.h \
 	msvcrt/corecrt.h \
+	msvcrt/corecrt_stdio_config.h \
 	msvcrt/corecrt_wstdio.h \
 	msvcrt/crtdbg.h \
 	msvcrt/crtdefs.h \
diff --git a/include/msvcrt/corecrt_stdio_config.h b/include/msvcrt/corecrt_stdio_config.h
new file mode 100644
index 0000000000..02a83684f8
--- /dev/null
+++ b/include/msvcrt/corecrt_stdio_config.h
@@ -0,0 +1,30 @@
+/**
+ * This file has no copyright assigned and is placed in the Public Domain.
+ * This file is part of the Wine project.
+ * No warranty is given; refer to the file DISCLAIMER.PD within this package.
+ */
+
+#ifndef _STDIO_CONFIG_DEFINED
+#define _STDIO_CONFIG_DEFINED
+
+#include <corecrt.h>
+
+#define _CRT_INTERNAL_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION  0x0001ULL
+#define _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR        0x0002ULL
+#define _CRT_INTERNAL_PRINTF_LEGACY_WIDE_SPECIFIERS            0x0004ULL
+#define _CRT_INTERNAL_PRINTF_LEGACY_MSVCRT_COMPATIBILITY       0x0008ULL
+#define _CRT_INTERNAL_PRINTF_LEGACY_THREE_DIGIT_EXPONENTS      0x0010ULL
+
+#define _CRT_INTERNAL_SCANF_SECURECRT                    0x0001ULL
+#define _CRT_INTERNAL_SCANF_LEGACY_WIDE_SPECIFIERS       0x0002ULL
+#define _CRT_INTERNAL_SCANF_LEGACY_MSVCRT_COMPATIBILITY  0x0004ULL
+
+#ifndef _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS
+#define _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS  _CRT_INTERNAL_PRINTF_LEGACY_WIDE_SPECIFIERS
+#endif
+
+#ifndef _CRT_INTERNAL_LOCAL_SCANF_OPTIONS
+#define _CRT_INTERNAL_LOCAL_SCANF_OPTIONS   _CRT_INTERNAL_SCANF_LEGACY_WIDE_SPECIFIERS
+#endif
+
+#endif /* _STDIO_CONFIG_DEFINED */
diff --git a/include/msvcrt/corecrt_wstdio.h b/include/msvcrt/corecrt_wstdio.h
index 488d2c4ae6..1480d32bf6 100644
--- a/include/msvcrt/corecrt_wstdio.h
+++ b/include/msvcrt/corecrt_wstdio.h
@@ -8,6 +8,7 @@
 #define _WSTDIO_DEFINED
 
 #include <corecrt.h>
+#include <corecrt_stdio_config.h>
 
 #ifndef RC_INVOKED
 #include <stdarg.h>




More information about the wine-cvs mailing list