]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41617: Add _Py__has_builtin() macro (GH-23260) (GH-23262)
authorVictor Stinner <vstinner@python.org>
Fri, 13 Nov 2020 15:38:06 +0000 (16:38 +0100)
committerGitHub <noreply@github.com>
Fri, 13 Nov 2020 15:38:06 +0000 (16:38 +0100)
commitec306a2fd91d8b961b2a80c080dd2262bb17d862
tree387d962187a1ff3af61a363f294cd2e5f5f01788
parente5729aef6ff67ae7ed05dffc0855477823826191
bpo-41617: Add _Py__has_builtin() macro (GH-23260) (GH-23262)

Fix building pycore_bitutils.h internal header on old clang version
without __builtin_bswap16() (ex: Xcode 4.6.3 on Mac OS X 10.7).

Add a new private _Py__has_builtin() macro to check for availability
of a preprocessor builtin function.

Co-Authored-By: Joshua Root <jmr@macports.org>
Co-authored-by: Joshua Root <jmr@macports.org>
(cherry picked from commit b3b98082c5431e77c64cab2c85525a804436b505)
Include/internal/pycore_byteswap.h
Include/pyport.h
Misc/NEWS.d/next/Build/2020-11-13-15-04-53.bpo-41617.98_oaE.rst [new file with mode: 0644]