summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-07-03 16:27:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:59:01 -0500
commit5dd8496af6f0e4a245ee3a365e2d9a440692fa05 (patch)
treea3bf3975909a269aa8052596c25aeeffed2de1af /source4
parentee1ca9a41091677154737ec56d7c443c323fbc59 (diff)
downloadsamba-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')
-rw-r--r--source4/torture/rpc/spoolss.c5
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 {\