diff options
Diffstat (limited to 'community/pipewire/0001-spa-fix-c90-header-include.patch')
-rw-r--r-- | community/pipewire/0001-spa-fix-c90-header-include.patch | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/community/pipewire/0001-spa-fix-c90-header-include.patch b/community/pipewire/0001-spa-fix-c90-header-include.patch deleted file mode 100644 index c6a22e77c1..0000000000 --- a/community/pipewire/0001-spa-fix-c90-header-include.patch +++ /dev/null @@ -1,44 +0,0 @@ -Patch-Source: https://gitlab.freedesktop.org/pipewire/pipewire/-/merge_requests/1211 -From 4f31c35bcf66cddf7c8ac7e61b594517ac0752a6 Mon Sep 17 00:00:00 2001 -From: psykose <alice@ayaya.dev> -Date: Wed, 13 Apr 2022 21:57:49 +0000 -Subject: [PATCH] spa: fix c90 header include - -placing declarations after code is invalid under ISO c90 ---- - spa/include/spa/utils/string.h | 6 ++++-- - 1 file changed, 4 insertions(+), 2 deletions(-) - -diff --git a/spa/include/spa/utils/string.h b/spa/include/spa/utils/string.h -index e80434537..43d19616c 100644 ---- a/spa/include/spa/utils/string.h -+++ b/spa/include/spa/utils/string.h -@@ -276,10 +276,11 @@ static inline int spa_scnprintf(char *buffer, size_t size, const char *format, . - static inline float spa_strtof(const char *str, char **endptr) - { - static locale_t locale = NULL; -+ locale_t prev; - float v; - if (SPA_UNLIKELY(locale == NULL)) - locale = newlocale(LC_ALL_MASK, "C", NULL); -- locale_t prev = uselocale(locale); -+ prev = uselocale(locale); - v = strtof(str, endptr); - uselocale(prev); - return v; -@@ -319,10 +320,11 @@ static inline bool spa_atof(const char *str, float *val) - static inline double spa_strtod(const char *str, char **endptr) - { - static locale_t locale = NULL; -+ locale_t prev; - double v; - if (SPA_UNLIKELY(locale == NULL)) - locale = newlocale(LC_ALL_MASK, "C", NULL); -- locale_t prev = uselocale(locale); -+ prev = uselocale(locale); - v = strtod(str, endptr); - uselocale(prev); - return v; --- -2.35.2 - |