summaryrefslogtreecommitdiffstats
path: root/Tools/ssl
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2020-04-12 18:59:31 (GMT)
committerGitHub <noreply@github.com>2020-04-12 18:59:31 (GMT)
commit909b87d2bb3d6330d39c48e43f7f50f4d086cc41 (patch)
tree94ad14693d7a5bd1c690ab92aaeceff8e8e0891e /Tools/ssl
parent41d5b94af44e34ac05d4cd57460ed104ccf96628 (diff)
downloadcpython-909b87d2bb3d6330d39c48e43f7f50f4d086cc41.zip
cpython-909b87d2bb3d6330d39c48e43f7f50f4d086cc41.tar.gz
cpython-909b87d2bb3d6330d39c48e43f7f50f4d086cc41.tar.bz2
closes bpo-39953: Generate ifdefs around library code definitions. (GH-19490)
Diffstat (limited to 'Tools/ssl')
-rwxr-xr-xTools/ssl/make_ssl_data.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tools/ssl/make_ssl_data.py b/Tools/ssl/make_ssl_data.py
index 1c7a5a9..a8562a2 100755
--- a/Tools/ssl/make_ssl_data.py
+++ b/Tools/ssl/make_ssl_data.py
@@ -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("")