diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-07-03 16:27:35 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:59:01 -0500 |
commit | 5dd8496af6f0e4a245ee3a365e2d9a440692fa05 (patch) | |
tree | a3bf3975909a269aa8052596c25aeeffed2de1af /source4/torture/rpc | |
parent | ee1ca9a41091677154737ec56d7c443c323fbc59 (diff) | |
download | samba-5dd8496af6f0e4a245ee3a365e2d9a440692fa05.tar.gz samba-5dd8496af6f0e4a245ee3a365e2d9a440692fa05.tar.bz2 samba-5dd8496af6f0e4a245ee3a365e2d9a440692fa05.zip |
r23687: not every compiler supports __typeof__()
metze
(This used to be commit d0f77f7bd7520f4cd61c0d0199b917895ea85a1c)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r-- | source4/torture/rpc/spoolss.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 {\ |