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:
parent
165b5b660a
commit
5882c44c81
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user