mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
closes bpo-39953: Generate ifdefs around library code definitions. (GH-19490)
This commit is contained in:
parent
41d5b94af4
commit
909b87d2bb
2 changed files with 55 additions and 1 deletions
|
@ -76,7 +76,9 @@ if __name__ == "__main__":
|
|||
|
||||
w("static struct py_ssl_library_code library_codes[] = {")
|
||||
for mnemo, (libcode, _, _) in sorted(error_libraries.items()):
|
||||
w(f'#ifdef {libcode}')
|
||||
w(' {"%s", %s},' % (mnemo, libcode))
|
||||
w('#endif')
|
||||
w(' { NULL }')
|
||||
w('};')
|
||||
w("")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue