i386 gcc3 support.

ok wilfried@
This commit is contained in:
kettenis 2004-11-13 14:25:51 +00:00
parent 174a8e0895
commit 015f583043

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-xpcom_reflect_xptcall_src_md_unix_xptc_platforms_unixish_x86_h,v 1.1 2004/11/13 14:25:51 kettenis Exp $
--- xpcom/reflect/xptcall/src/md/unix/xptc_platforms_unixish_x86.h.orig Thu Jan 8 19:17:07 2004
+++ xpcom/reflect/xptcall/src/md/unix/xptc_platforms_unixish_x86.h Fri Nov 12 21:09:52 2004
@@ -107,12 +107,16 @@
#define THUNK_BASED_THIS_ADJUST
#elif defined(__OpenBSD__)
+#if __GNUC__ >= 3
+#define THUNK_BASED_THIS_ADJUST
+#else
/* OpenBSD instroduces GCC 2.95.x in late May 1999 */
#include <sys/param.h>
#if OpenBSD <= 199905
#define THUNK_BASED_THIS_ADJUST
#else
#define CFRONT_STYLE_THIS_ADJUST
+#endif
#endif
#elif defined(__bsdi__)