Re: [Linux-ia64] gnu-efi-1.1 released

From: H . J . Lu <hjl_at_valinux.com>
Date: 2001-02-16 07:21:17
On Mon, Oct 30, 2000 at 01:55:19PM -0800, Stephane Eranian wrote:
> 
> Hi All,
> 
> I have uploaded version 1.1 of the gnu-efi package on our FTP site.
> 

Here is a patch to define INTERFACE_DECL for gcc.


H.J.
---
--- gnu-efi-1.1/inc/ia32/efibind.h.type	Mon Oct  9 17:49:02 2000
+++ gnu-efi-1.1/inc/ia32/efibind.h	Thu Feb 15 12:07:16 2001
@@ -206,3 +206,19 @@ typedef uint32_t   UINTN;
             (_if)->LoadInternal(type, name, entry)
 
 #endif /*  EFI_FW_NT  */
+
+/* 
+ *  Some compilers don't support the forward reference construct:
+ *   typedef struct XXXXX
+ * 
+ *  The following macro provide a workaround for such cases.
+ */
+#ifdef __GNUC__
+#define INTERFACE_DECL(x) struct x
+#else
+#ifdef NO_INTERFACE_DECL
+#define INTERFACE_DECL(x)
+#else
+#define INTERFACE_DECL(x) typedef struct x
+#endif
+#endif
--- gnu-efi-1.1/inc/ia64/efibind.h.type	Mon Oct  9 17:49:02 2000
+++ gnu-efi-1.1/inc/ia64/efibind.h	Thu Feb 15 12:05:34 2001
@@ -156,3 +156,18 @@ typedef uint64_t   UINTN;
 #define LOAD_INTERNAL_DRIVER(_if, type, name, entry)    \
         (_if)->LoadInternal(type, name, entry)
 
+/* 
+ *  Some compilers don't support the forward reference construct:
+ *   typedef struct XXXXX
+ * 
+ *  The following macro provide a workaround for such cases.
+ */
+#ifdef __GNUC__
+#define INTERFACE_DECL(x) struct x
+#else
+#ifdef NO_INTERFACE_DECL
+#define INTERFACE_DECL(x)
+#else
+#define INTERFACE_DECL(x) typedef struct x
+#endif
+#endif
Received on Thu Feb 15 12:33:00 2001

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:02 EST