forked from macports/macports-ports
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7376c12
commit 3930363
Showing
2 changed files
with
29 additions
and
0 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
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,26 @@ | ||
From 76e2d331f566bcbbeba121648e94607d12ca420b Mon Sep 17 00:00:00 2001 | ||
From: Sergey Fedorov <[email protected]> | ||
Date: Sat, 14 Dec 2024 23:38:44 +0800 | ||
Subject: [PATCH] compute.c: fix static_assert for gcc | ||
|
||
--- | ||
compute.c | 6 ++++++ | ||
1 file changed, 6 insertions(+) | ||
|
||
diff --git compute.c compute.c | ||
index a3d6e47..9ba3ac2 100644 | ||
--- compute.c | ||
+++ compute.c | ||
@@ -12,6 +12,12 @@ | ||
|
||
#include "ooura/dct.h" | ||
|
||
+#if !defined(static_assert) && (defined(__GNUC__) || defined(__clang__)) \ | ||
+ && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L \ | ||
+ && __STDC_VERSION__ <= 201710L | ||
+#define static_assert _Static_assert | ||
+#endif | ||
+ | ||
static_assert(FLT_EVAL_METHOD == 0, "to preserve identical output please disable excess precision"); | ||
#ifdef PRAGMA_FP_CONTRACT | ||
#pragma STDC FP_CONTRACT OFF |