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

This commit is contained in:
Alexandre Julliard 2008-12-17 17:38:02 +01:00
parent ba8a0b7b9d
commit 5646fec9b1
1 changed files with 6 additions and 1 deletions

View File

@ -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)