include: Use __p__iob on i386 to avoid problems with Mingw libraries.
This commit is contained in:
parent
ba8a0b7b9d
commit
5646fec9b1
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue