check_c_headers from tuple array to dictionary

This commit is contained in:
Thaddeus Crews
2023-10-01 14:09:39 -05:00
parent 0ca8542329
commit e9b2af91cf
2 changed files with 5 additions and 4 deletions

View File

@ -987,9 +987,10 @@ if selected_platform in platform_list:
# Check for the existence of headers
conf = Configure(env)
if "check_c_headers" in env:
for header in env["check_c_headers"]:
if conf.CheckCHeader(header[0]):
env.AppendUnique(CPPDEFINES=[header[1]])
headers = env["check_c_headers"]
for header in headers:
if conf.CheckCHeader(header):
env.AppendUnique(CPPDEFINES=[headers[header]])
elif selected_platform != "":
if selected_platform == "list":