1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

build: check immediate structures

This commit is contained in:
Andrew Tridgell 2010-03-07 17:20:22 +11:00
parent 165b5b660a
commit 5882c44c81

View File

@ -193,6 +193,20 @@ def configure(conf):
execute=True): execute=True):
break 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): def build(bld):