Author: hbelusca
Date: Wed Oct 5 14:30:59 2016
New Revision: 72911
URL:
http://svn.reactos.org/svn/reactos?rev=72911&view=rev
Log:
[INCLUDES/CRT]: Fix the definition of 'stderr' (that we have wrong since r38292);
move it next to the _iob definition.
Modified:
trunk/reactos/sdk/include/crt/stdio.h
trunk/reactos/sdk/include/crt/wchar.h
Modified: trunk/reactos/sdk/include/crt/stdio.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/include/crt/stdio.h?re…
==============================================================================
--- trunk/reactos/sdk/include/crt/stdio.h [iso-8859-1] (original)
+++ trunk/reactos/sdk/include/crt/stdio.h [iso-8859-1] Wed Oct 5 14:30:59 2016
@@ -101,6 +101,13 @@
#endif
#endif
+#ifndef _STDSTREAM_DEFINED
+#define _STDSTREAM_DEFINED
+#define stdin (&_iob[0])
+#define stdout (&_iob[1])
+#define stderr (&_iob[2])
+#endif /* !_STDSTREAM_DEFINED */
+
#ifndef _FPOS_T_DEFINED
#define _FPOS_T_DEFINED
#undef _FPOSOFF
@@ -114,13 +121,6 @@
#endif
#endif
-
-#ifndef _STDSTREAM_DEFINED
-#define _STDSTREAM_DEFINED
-#define stdin (&_iob[0])
-#define stdout (&_iob[1])
-#define stderr (&_iob[1])
-#endif /* !_STDSTREAM_DEFINED */
#define _IOREAD 0x0001
#define _IOWRT 0x0002
Modified: trunk/reactos/sdk/include/crt/wchar.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/include/crt/wchar.h?re…
==============================================================================
--- trunk/reactos/sdk/include/crt/wchar.h [iso-8859-1] (original)
+++ trunk/reactos/sdk/include/crt/wchar.h [iso-8859-1] Wed Oct 5 14:30:59 2016
@@ -60,7 +60,7 @@
#define _STDSTREAM_DEFINED
#define stdin (&_iob[0])
#define stdout (&_iob[1])
-#define stderr (&_iob[1])
+#define stderr (&_iob[2])
#endif /* !_STDSTREAM_DEFINED */
#ifndef _FSIZE_T_DEFINED