Displaying 1 result from an estimated 1 matches for "306887d".
Did you mean:
306887
2017 Dec 16
0
[PATCH] opus_defines.h: disable restrict with gcc < 3.4
...ith gcc < 3.4. See:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=6392
Therefore, disable restrict with gcc versions older than 3.4.
---
include/opus_defines.h | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/include/opus_defines.h b/include/opus_defines.h
index 33c5acd..306887d 100644
--- a/include/opus_defines.h
+++ b/include/opus_defines.h
@@ -86,7 +86,11 @@ extern "C" {
# endif
# endif
-#if (!defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L) )
+#if (defined(__GNUC__) && !OPUS_GNUC_PREREQ(3,4))
+/* __restrict is broken with gcc < 3.4...