Alexandre Julliard : include: Use __p__iob on i386 to avoid problems with Mingw libraries.
Alexandre Julliard
julliard at winehq.org
Wed Dec 17 10:52:45 CST 2008
Module: wine
Branch: master
Commit: 5646fec9b14b2d039994cdeeef141eca889e649f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5646fec9b14b2d039994cdeeef141eca889e649f
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Dec 17 17:38:02 2008 +0100
include: Use __p__iob on i386 to avoid problems with Mingw libraries.
---
include/msvcrt/stdio.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/include/msvcrt/stdio.h b/include/msvcrt/stdio.h
index 0f91947..98cc950 100644
--- a/include/msvcrt/stdio.h
+++ b/include/msvcrt/stdio.h
@@ -81,8 +81,13 @@ extern "C" {
#endif
#ifndef _STDIO_DEFINED
+# ifdef __i386__
+FILE* __cdecl __p__iob(void);
+# define _iob (__p__iob())
+# else
FILE* __cdecl __iob_func(void);
-# define _iob (__iob_func())
+# define _iob (__iob_func())
+# endif
#endif /* _STDIO_DEFINED */
#define stdin (_iob+STDIN_FILENO)
More information about the wine-cvs
mailing list