$OpenBSD: patch-include_wintypes_h,v 1.1 2003/12/31 04:21:45 espie Exp $
--- include/wintypes.h.orig	2003-12-31 04:37:32.000000000 +0100
+++ include/wintypes.h	2003-12-31 04:37:54.000000000 +0100
@@ -61,7 +61,7 @@ extern "C" {
 /* Calling conventions definitions */
 
 #ifdef __i386__
-# if defined(__GNUC__) && (__GNUC__ == 2) && (__GNUC_MINOR__ >= 7)
+# if defined(__GNUC__) && ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 7)) || (__GNUC__ >= 3)
 #  define __stdcall __attribute__((__stdcall__))
 #  define __cdecl   __attribute__((__cdecl__))
 #  define __RESTORE_ES  __asm__ __volatile__("pushl %ds\n\tpopl %es")
