summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture')
-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 {\