mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
build: check immediate structures
This commit is contained in:
parent
165b5b660a
commit
5882c44c81
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user