From 65d1d4184483036a7ba159ad28b29001c0ec8b4e Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Tue, 30 Mar 2010 17:24:15 +0200 Subject: s4:torture/basic/denytest.c - use "typeof" in a better supported syntax This should make it compatible with the SUN Studio C Compiler. --- source4/torture/basic/denytest.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source4') diff --git a/source4/torture/basic/denytest.c b/source4/torture/basic/denytest.c index 2019ec5a02..81e90f88c8 100644 --- a/source4/torture/basic/denytest.c +++ b/source4/torture/basic/denytest.c @@ -2095,11 +2095,11 @@ static int cxd_find_known(struct createx_data *cxd) return -1; } -#define FILL_NTCREATEX(_struct, _init...) \ - do { \ - (_struct)->generic.level = RAW_OPEN_NTCREATEX; \ - (_struct)->ntcreatex.in \ - = (typeof((_struct)->ntcreatex.in)) {_init};\ +#define FILL_NTCREATEX(_struct, _init...) \ + do { \ + (_struct)->generic.level = RAW_OPEN_NTCREATEX; \ + (_struct)->ntcreatex.in \ + = (__typeof__((_struct)->ntcreatex.in)) {_init}; \ } while (0) #define CREATEX_NAME "\\createx_dir" -- cgit