git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bb81c1
)
r23687: not every compiler supports __typeof__()
author
Stefan Metzmacher
<metze@samba.org>
Tue, 3 Jul 2007 16:27:35 +0000
(16:27 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:59:01 +0000
(14:59 -0500)
metze
source/torture/rpc/spoolss.c
patch
|
blob
|
history
diff --git
a/source/torture/rpc/spoolss.c
b/source/torture/rpc/spoolss.c
index 05bd987c85ce450f6285c6390c915d3c325103ee..e184223140bfb268a7e318c8f873ae2687505178 100644
(file)
--- a/
source/torture/rpc/spoolss.c
+++ b/
source/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 {\