logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0007-HACK-Disable-__has_builtin-for-now.patch (950B)


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