This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
i386 win32 libffi fix
- From: Bo Thorsen <bo at sonofthor dot dk>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 1 Oct 2002 14:22:04 +0200
- Subject: i386 win32 libffi fix
I broke win32 compilation on my last ffi commit. This fixes it. Can I
commit it?
2002-10-01 Bo Thorsen <bo@smetana.suse.de>
* include/ffi.h.in: Fix i386 win32 compilation.
Index: include/ffi.h.in
===================================================================
RCS file: /cvs/gcc/gcc/libffi/include/ffi.h.in,v
retrieving revision 1.19
diff -u -r1.19 ffi.h.in
--- include/ffi.h.in 30 Sep 2002 11:59:41 -0000 1.19
+++ include/ffi.h.in 1 Oct 2002 12:19:25 -0000
@@ -202,7 +202,7 @@
#endif
/* ---- Intel x86 and AMD x86-64 - */
-#if defined(__i386__) || defined(__x86_64__)
+#if !defined(X86_WIN32) && (defined(__i386__) || defined(__x86_64__))
FFI_SYSV,
FFI_UNIX64, /* Unix variants all use the same ABI for x86-64 */
#ifdef __i386__
--
Bo Thorsen | Praestevejen 4
Senior Software Engineer | 5290 Marslev
Klarälvdalens Datakonsult | Denmark