mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
wafsamba: let CHECK_DECLS() find enum values
In the current state this still generates the same config.h at least on ubuntu 14.04 amd64. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
parent
86671dbd9f
commit
ff072a6336
@ -229,7 +229,18 @@ def CHECK_DECLS(conf, vars, reverse=False, headers=None, always=False):
|
||||
headers=headers,
|
||||
msg='Checking for declaration of %s' % v,
|
||||
always=always):
|
||||
ret = False
|
||||
if not CHECK_CODE(conf,
|
||||
'''
|
||||
return (int)%s;
|
||||
''' % (v),
|
||||
execute=False,
|
||||
link=False,
|
||||
msg='Checking for declaration of %s (as enum)' % v,
|
||||
local_include=False,
|
||||
headers=headers,
|
||||
define=define,
|
||||
always=always):
|
||||
ret = False
|
||||
return ret
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user