summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2005-03-07 15:38:37 +0000
committerstefanf <stefanf@FreeBSD.org>2005-03-07 15:38:37 +0000
commit125089227ddcb1e1a8962734d2e12a44f86d7f82 (patch)
treed8638810ddec7008998b7c3c0e283c27dcca905a /sys/boot
parent8320b370303d044bff05f049d778b71e6f88b241 (diff)
downloadFreeBSD-src-125089227ddcb1e1a8962734d2e12a44f86d7f82.zip
FreeBSD-src-125089227ddcb1e1a8962734d2e12a44f86d7f82.tar.gz
Don't try to use 'typedef struct foo' if just 'struct foo' makes more sense
and works on all compilers. This also removes the need for __CC_SUPPORTS_FORWARD_REFERENCE_CONSTRUCT in <sys/cdefs.h>. OK'ed by: marcel, dfr
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/efi/include/i386/efibind.h12
-rw-r--r--sys/boot/efi/include/ia64/efibind.h14
2 files changed, 1 insertions, 25 deletions
diff --git a/sys/boot/efi/include/i386/efibind.h b/sys/boot/efi/include/i386/efibind.h
index 5c19495..1c62eb6 100644
--- a/sys/boot/efi/include/i386/efibind.h
+++ b/sys/boot/efi/include/i386/efibind.h
@@ -231,17 +231,7 @@ typedef uint32_t UINTN;
#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 NO_INTERFACE_DECL
-#define INTERFACE_DECL(x)
-#else
-#define INTERFACE_DECL(x) typedef struct x
-#endif
+#define INTERFACE_DECL(x) struct x
#if _MSC_EXTENSIONS
#pragma warning ( disable : 4731 )
diff --git a/sys/boot/efi/include/ia64/efibind.h b/sys/boot/efi/include/ia64/efibind.h
index 6031eb7..0c77dca 100644
--- a/sys/boot/efi/include/ia64/efibind.h
+++ b/sys/boot/efi/include/ia64/efibind.h
@@ -131,18 +131,4 @@ void __mf (void);
#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 NO_INTERFACE_DECL
-#define INTERFACE_DECL(x)
-#else
-#ifdef __CC_SUPPORTS_FORWARD_REFERENCE_CONSTRUCT
#define INTERFACE_DECL(x) struct x
-#else
-#define INTERFACE_DECL(x) typedef struct x
-#endif
-#endif
OpenPOWER on IntegriCloud