From 5dd8496af6f0e4a245ee3a365e2d9a440692fa05 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 3 Jul 2007 16:27:35 +0000 Subject: r23687: not every compiler supports __typeof__() metze (This used to be commit d0f77f7bd7520f4cd61c0d0199b917895ea85a1c) --- source4/torture/rpc/spoolss.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4/torture/rpc') diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index 05bd987c85..e184223140 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -64,6 +64,8 @@ struct test_spoolss_context { }\ } while(0) +/* not every compiler supports __typeof__() */ +#if (__GNUC__ >= 3) #define _CHECK_FIELD_SIZE(c,r,e,type) do {\ if (sizeof(__typeof__(c.e)) != sizeof(type)) { \ printf(__location__ ":" #c "." #e "field is not " #type "\n"); \ @@ -76,6 +78,9 @@ struct test_spoolss_context { ret = False; \ }\ } while(0) +#else +#define _CHECK_FIELD_SIZE(c,r,e,type) do {} while(0) +#endif #if 0 /* unused */ #define COMPARE_UINT16(c,r,e) do {\ -- cgit