Author: metze Date: 2007-07-03 16:27:35 +0000 (Tue, 03 Jul 2007) New Revision: 23687
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23687 Log: not every compiler supports __typeof__() metze Modified: branches/SAMBA_4_0/source/torture/rpc/spoolss.c Changeset: Modified: branches/SAMBA_4_0/source/torture/rpc/spoolss.c =================================================================== --- branches/SAMBA_4_0/source/torture/rpc/spoolss.c 2007-07-03 15:44:58 UTC (rev 23686) +++ branches/SAMBA_4_0/source/torture/rpc/spoolss.c 2007-07-03 16:27:35 UTC (rev 23687) @@ -64,6 +64,8 @@ }\ } 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 @@ 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 {\
