summaryrefslogtreecommitdiffstats
path: root/lib/replace
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-07 17:20:22 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:44 +1000
commit5882c44c8149c6db529055ae9f082de30ad80820 (patch)
treeaaca461455f64e92c3fa15bf3a2705674d0dd2f2 /lib/replace
parent165b5b660a60b2d79361bd32441e7a1b8c10edd3 (diff)
downloadsamba-5882c44c8149c6db529055ae9f082de30ad80820.tar.gz
samba-5882c44c8149c6db529055ae9f082de30ad80820.tar.xz
samba-5882c44c8149c6db529055ae9f082de30ad80820.zip
build: check immediate structures
Diffstat (limited to 'lib/replace')
-rw-r--r--lib/replace/wscript14
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):