-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use different patch for ppc853x to avoid undefined static_assert
- Loading branch information
Showing
3 changed files
with
17 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
cross/python311/patches/ppc853x-5.2/001-avoid_static_assert_undefined.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# gcc 4.3.2 is lacking static_assert for c code (available for c++ code only). | ||
# | ||
# Since static_assert acts at compile time only, it does not affect the runtime | ||
# behaviour when omitting the implementation. | ||
# | ||
--- Include/pymacro.h.orig 2023-08-24 12:09:18.000000000 +0000 | ||
+++ Include/pymacro.h 2024-03-02 18:15:00.033365138 +0000 | ||
@@ -21,6 +21,8 @@ | ||
&& defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L \ | ||
&& __STDC_VERSION__ <= 201710L | ||
# define static_assert _Static_assert | ||
+#else | ||
+# define static_assert | ||
#endif | ||
|
||
/* Minimum value between x and y */ |
39 changes: 0 additions & 39 deletions
39
cross/python311/patches/ppc853x-5.2/001-revert-static_assert_undefined-fix-GH-94766.patch
This file was deleted.
Oops, something went wrong.