diff --git a/Misc/NEWS.d/next/Build/2024-03-15-20-35-02.gh-issue-116874.ZGTL0M.rst b/Misc/NEWS.d/next/Build/2024-03-15-20-35-02.gh-issue-116874.ZGTL0M.rst new file mode 100644 index 00000000000000..dc61d4da04e11a --- /dev/null +++ b/Misc/NEWS.d/next/Build/2024-03-15-20-35-02.gh-issue-116874.ZGTL0M.rst @@ -0,0 +1 @@ +Fix building _decimal module on ppc64le diff --git a/Misc/sbom.spdx.json b/Misc/sbom.spdx.json index 7e9aa6dd82e619..e7519ed182c891 100644 --- a/Misc/sbom.spdx.json +++ b/Misc/sbom.spdx.json @@ -1406,11 +1406,11 @@ "checksums": [ { "algorithm": "SHA1", - "checksumValue": "4b80e25ac49b7e1ea0d1e84967ee32a3d111fc4c" + "checksumValue": "a16dfd5d53933b52bcd62c7995b6f08502bdd313" }, { "algorithm": "SHA256", - "checksumValue": "ea0b9c6b296c13aed6ecaa50b463e39a9c1bdc059b84f50507fd8247b2e660f9" + "checksumValue": "00af8f53d39cc8a1c9425897fa33a653a014b3720495822f4f29c877718084a4" } ], "fileName": "Modules/_decimal/libmpdec/mpdecimal.h" diff --git a/Modules/_decimal/libmpdec/mpdecimal.h b/Modules/_decimal/libmpdec/mpdecimal.h index 24c280b00ebcd0..7c74f1a8ad0d86 100644 --- a/Modules/_decimal/libmpdec/mpdecimal.h +++ b/Modules/_decimal/libmpdec/mpdecimal.h @@ -100,12 +100,12 @@ const char *mpd_version(void); #if defined(CONFIG_64) || defined(CONFIG_32) #error "cannot use CONFIG_64 or CONFIG_32 with UNIVERSAL." #endif - #if defined(__ppc__) - #define CONFIG_32 - #define ANSI - #elif defined(__ppc64__) + #if defined(__ppc64__) || defined(__powerpc64__) #define CONFIG_64 #define ANSI + #elif defined(__ppc__) + #define CONFIG_32 + #define ANSI #elif defined(__i386__) #define CONFIG_32 #define ANSI