master hovercats/oakiss / pkg / ffmpeg / patch / 0007-HACK-Disable-__has_builtin-for-now.patch
 1From 9caa1ecbdf94a9bd5bedc83c602b30821f7fdd23 Mon Sep 17 00:00:00 2001
 2From: Michael Forney <mforney@mforney.org>
 3Date: Tue, 7 Sep 2021 02:01:31 -0700
 4Subject: [PATCH] [HACK] Disable __has_builtin for now
 5
 6This is only used for detecting __builtin_add_overflow, but since
 7we use gcc as a preprocessor for cproc, we have no way to tell it
 8we don't support that feature. Since the built-in is used regardless
 9of __has_builtin on gcc 5.1 or newer, just disable it for now until
10the cproc preprocessor is complete.
11---
12 libavutil/attributes.h | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/libavutil/attributes.h b/libavutil/attributes.h
16index 5cb9fe3452..d70d98abb1 100644
17--- a/libavutil/attributes.h
18+++ b/libavutil/attributes.h
19@@ -34,7 +34,7 @@
20 #    define AV_GCC_VERSION_AT_MOST(x,y)  0
21 #endif
22 
23-#ifdef __has_builtin
24+#if 0
25 #    define AV_HAS_BUILTIN(x) __has_builtin(x)
26 #else
27 #    define AV_HAS_BUILTIN(x) 0
28-- 
292.32.0
30