gh-108765: Reformat Include/pymacconfig.h (#108764)

Replace "MacOSX" with "macOS".
This commit is contained in:
Victor Stinner 2023-09-01 16:57:28 +02:00 committed by GitHub
parent 5948f562e0
commit 03c5a68568
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,14 +1,11 @@
#ifndef PYMACCONFIG_H
#define PYMACCONFIG_H
/*
* This file moves some of the autoconf magic to compile-time
* when building on MacOSX. This is needed for building 4-way
* universal binaries and for 64-bit universal binaries because
* the values redefined below aren't configure-time constant but
* only compile-time constant in these scenarios.
*/
// This file moves some of the autoconf magic to compile-time when building on
// macOS. This is needed for building 4-way universal binaries and for 64-bit
// universal binaries because the values redefined below aren't configure-time
// constant but only compile-time constant in these scenarios.
#if defined(__APPLE__)
#ifndef PY_MACCONFIG_H
#define PY_MACCONFIG_H
#ifdef __APPLE__
#undef SIZEOF_LONG
#undef SIZEOF_PTHREAD_T
@ -60,17 +57,14 @@
# define SIZEOF_PTHREAD_T 4
#endif
// macOS 10.4 (the first release to support 64-bit code
// at all) only supports 64-bit in the UNIX layer.
// Therefore suppress the toolbox-glue in 64-bit mode.
//
// In 64-bit mode setpgrp always has no arguments, in 32-bit
// mode that depends on the compilation environment
#if defined(__LP64__)
/* MacOSX 10.4 (the first release to support 64-bit code
* at all) only supports 64-bit in the UNIX layer.
* Therefore suppress the toolbox-glue in 64-bit mode.
*/
/* In 64-bit mode setpgrp always has no arguments, in 32-bit
* mode that depends on the compilation environment
*/
# undef SETPGRP_HAVE_ARG
#endif
#ifdef __BIG_ENDIAN__
@ -78,13 +72,11 @@
# define DOUBLE_IS_BIG_ENDIAN_IEEE754
#else
# define DOUBLE_IS_LITTLE_ENDIAN_IEEE754
#endif /* __BIG_ENDIAN */
#endif
#ifdef __i386__
# define HAVE_GCC_ASM_FOR_X87
#endif
#endif /* defined(_APPLE__) */
#endif /* PYMACCONFIG_H */
#endif // __APPLE__
#endif // !PY_MACCONFIG_H