diff options
Diffstat (limited to 'lib/replace')
-rw-r--r-- | lib/replace/wscript | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript index e999c02eef..d10a70342e 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -193,6 +193,20 @@ def configure(conf): execute=True): break + conf.CHECK_CODE(''' + typedef struct {unsigned x;} FOOBAR; + #define X_FOOBAR(x) ((FOOBAR) { x }) + #define FOO_ONE X_FOOBAR(1) + FOOBAR f = FOO_ONE; + static const struct { + FOOBAR y; + } f2[] = { + {FOO_ONE} + }; + static const FOOBAR f3[] = {FOO_ONE}; + ''', + define='HAVE_IMMEDIATE_STRUCTURES') + def build(bld): |