Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorKeith Marshall <keithmarshall@@users.sf.net>2008-07-02 02:57:24 +0400
committerKeith Marshall <keithmarshall@@users.sf.net>2008-07-02 02:57:24 +0400
commit278101de7f2a6d1276c2f670a5ae30425cc5d33b (patch)
treeb9007143b8830321623ff84551300d97286ef1cb /winsup
parent4534778c4c3bb3a18cd89827101b03d9b9686dbe (diff)
Add _get_output_format(), _set_output_format() for MSVCRT >= MSVCR80
Diffstat (limited to 'winsup')
-rw-r--r--winsup/mingw/ChangeLog11
-rw-r--r--winsup/mingw/include/stdio.h17
-rw-r--r--winsup/mingw/msvcrt.def.in2
3 files changed, 24 insertions, 6 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog
index 012666a16..983aadd2e 100644
--- a/winsup/mingw/ChangeLog
+++ b/winsup/mingw/ChangeLog
@@ -1,3 +1,14 @@
+2008-07-01 Keith Marshall <keithmarshall@users.sourceforge.net>
+
+ * msvcrt.def.in [__msvcr80__, __msvcr80d__, __msvcr90__, __msvcr90d__]
+ (_get_output_format, _set_output_format): Add references.
+
+ * include/stdio.h [__MSVCRT_VERSION__ >= 0x800]
+ (_get_output_format, _set_output_format): Declare prototypes.
+ (_TWO_DIGIT_EXPONENT): Define.
+ Some other minor formatting adjustments.
+
+
2008-06-14 Danny Smith <dannysmith@users.sourceforge.net>
[mingw-Bugs-1801641]
diff --git a/winsup/mingw/include/stdio.h b/winsup/mingw/include/stdio.h
index 45b369ea5..f8bb0ec18 100644
--- a/winsup/mingw/include/stdio.h
+++ b/winsup/mingw/include/stdio.h
@@ -386,16 +386,21 @@ _CRTIMP int __cdecl __MINGW_NOTHROW _fgetchar (void);
_CRTIMP int __cdecl __MINGW_NOTHROW _fputchar (int);
_CRTIMP FILE* __cdecl __MINGW_NOTHROW _fdopen (int, const char*);
_CRTIMP int __cdecl __MINGW_NOTHROW _fileno (FILE*);
-_CRTIMP int __cdecl __MINGW_NOTHROW _fcloseall(void);
-_CRTIMP FILE* __cdecl __MINGW_NOTHROW _fsopen(const char*, const char*, int);
+_CRTIMP int __cdecl __MINGW_NOTHROW _fcloseall (void);
+_CRTIMP FILE* __cdecl __MINGW_NOTHROW _fsopen (const char*, const char*, int);
#ifdef __MSVCRT__
-_CRTIMP int __cdecl __MINGW_NOTHROW _getmaxstdio(void);
-_CRTIMP int __cdecl __MINGW_NOTHROW _setmaxstdio(int);
+_CRTIMP int __cdecl __MINGW_NOTHROW _getmaxstdio (void);
+_CRTIMP int __cdecl __MINGW_NOTHROW _setmaxstdio (int);
#endif
#if __MSVCRT_VERSION__ >= 0x800
-_CRTIMP int __cdecl __MINGW_NOTHROW _set_printf_count_output(int);
-_CRTIMP int __cdecl __MINGW_NOTHROW _get_printf_count_output(void);
+_CRTIMP unsigned int __cdecl __MINGW_NOTHROW _get_output_format (void);
+_CRTIMP unsigned int __cdecl __MINGW_NOTHROW _set_output_format (unsigned int);
+
+#define _TWO_DIGIT_EXPONENT 1
+
+_CRTIMP int __cdecl __MINGW_NOTHROW _get_printf_count_output (void);
+_CRTIMP int __cdecl __MINGW_NOTHROW _set_printf_count_output (int);
#endif
#ifndef _NO_OLDNAMES
diff --git a/winsup/mingw/msvcrt.def.in b/winsup/mingw/msvcrt.def.in
index f541dfae1..87301f3cb 100644
--- a/winsup/mingw/msvcrt.def.in
+++ b/winsup/mingw/msvcrt.def.in
@@ -810,6 +810,8 @@ _set_SSE2_enable
#endif /* 7.1 */
#if ( __msvcr80__ || __msvcr80d__ || __msvcr90__ || __msvcr90d__)
; msvcr80.dll
+_get_output_format
+_set_output_format
_get_printf_count_output
_set_printf_count_output
_set_abort_behavior