Files
buildroot/package/libplacebo/0002-src-pl_assert.h-add-static_assert-define-for-ulibc.patch
Javad Rahimipetroudi 006aab8d64 package/libplacebo: add libplacebo package
This patch adds libplacebo package that is used
by mpv player.
libplacebo is the core rendering algorithms and
ideas of mpv rewritten as an independent library
and contains a large assortment of video processing
shaders, focusing on both quality and performance.

Signed-off-by: Javad Rahimipetroudi <javad.rahimipetroudi@mind.be>
Tested-by: Sen Hastings <sen@hastings.org>
[Bernd:
- bumped to v7.351.0
- moved Kconfig option to Multimedia (Sen)
- rebased patch 0001 after version bump
- added project URL to Config.in helptext
- removed redundancy in Config.in comment
- added comment to hash file
- switched _SITE to official repo
- added patch to fix build error with latest python3]

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2026-01-01 17:16:32 +01:00

37 lines
1.1 KiB
Diff

From 0182e2b94bbc6bb964f96527d18e93c9b4709a3a Mon Sep 17 00:00:00 2001
From: Javad Rahimipetroudi <javad.rahimipetroudi@mind.be>
Date: Fri, 19 Jul 2024 07:57:45 +0200
Subject: [PATCH] src/pl_assert.h:add static_assert define for ulibc
This PR adds the static_assert macro defination for uClibc that is
missed in some platforms. However, it is limited to C versions lower
than C23. From C23, static_assert is not defined as macro anymore:
https://en.cppreference.com/w/c/language/_Static_assert
Signed-off-by: Javad Rahimipetroudi <javad.rahimipetroudi@mind.be>
Upstream: https://github.com/haasn/libplacebo/commit/0182e2b94bbc6bb964f96527d18e93c9b4709a3a
---
src/pl_assert.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/pl_assert.h b/src/pl_assert.h
index b4c6656c..de9d3547 100644
--- a/src/pl_assert.h
+++ b/src/pl_assert.h
@@ -20,6 +20,12 @@
#include <stdio.h>
#include <assert.h>
+#if !defined (__cplusplus)
+#if (__STDC_VERSION__ < 202301L)
+#define static_assert _Static_assert
+#endif
+#endif
+
#ifndef NDEBUG
# define pl_assert assert
#else
--
2.45.2