s4:torture/basic/denytest.c - use "typeof" in a better supported syntax
[bbaumbach/samba-autobuild/.git] / source4 / torture / basic / denytest.c
index 2019ec5a0269be478c58e86bbb926431fe10e9f4..81e90f88c82960e6adbb38cd8d44b4d3a61ae0fe 100644 (file)
@@ -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"