2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-25 19:30:04 +01:00

Issue 1117

This commit is contained in:
Thomas Nagy 2012-02-22 20:41:09 +01:00
parent 976d2e95a0
commit 74beae4113

View File

@ -884,7 +884,7 @@ def have_define(self, key):
:return: the input key prefixed by *HAVE_* and substitute any invalid characters.
:rtype: string
"""
return self.__dict__.get('HAVE_PAT', 'HAVE_%s') % Utils.quote_define_name(key)
return (self.env.HAVE_PAT or 'HAVE_%s') % Utils.quote_define_name(key)
@conf
def write_config_header(self, configfile='', guard='', top=False, env=None, defines=True, headers=False, remove=True):