Commit 5646fec9 authored by Alexandre Julliard's avatar Alexandre Julliard

include: Use __p__iob on i386 to avoid problems with Mingw libraries.

parent ba8a0b7b
...@@ -81,8 +81,13 @@ extern "C" { ...@@ -81,8 +81,13 @@ extern "C" {
#endif #endif
#ifndef _STDIO_DEFINED #ifndef _STDIO_DEFINED
# ifdef __i386__
FILE* __cdecl __p__iob(void);
# define _iob (__p__iob())
# else
FILE* __cdecl __iob_func(void); FILE* __cdecl __iob_func(void);
# define _iob (__iob_func()) # define _iob (__iob_func())
# endif
#endif /* _STDIO_DEFINED */ #endif /* _STDIO_DEFINED */
#define stdin (_iob+STDIN_FILENO) #define stdin (_iob+STDIN_FILENO)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment