try attached git am patch?

from my cursory look stdbool.h should be in c99 standart so we are safe to
include it ...

пн, 5 мая 2025 г., 17:18 Andrew Randrianasulu <[email protected]>:

>
>
> пн, 5 мая 2025 г., 17:11 Andrew Randrianasulu <[email protected]>:
>
>>
>>
>> пн, 5 мая 2025 г., 15:43 Andrea paz via Cin <[email protected]>:
>>
>>> With guilty delay I tried to make a compilation to try Andrew's patch
>>> for Blend Algebra/Program. I got a crash; the fault is not with the
>>> patch because I keep getting crashes even without patching. I attach
>>> the cin5.log.
>>>
>>
>> src/ALAC/alac_decoder.c:42:9: error: cannot use keyword 'false' as
>> enumeration constant
>>    42 | {       false = 0,
>>       |         ^~~~~
>> src/ALAC/alac_decoder.c:42:9: note: 'false' is a keyword with '-std=c23'
>> onwards
>>
>> gcc developers bite us, too ;)
>>
>> I'll look into what exactly was failing.
>>
>>
> libsndfile, but I am not sure fix is safe for older distros
>
>
> https://github.com/libsndfile/libsndfile/commit/2251737b3b175925684ec0d37029ff4cb521d302
>
>
>
>>
>>
>>> (Won't it still be the fault of cmake, which has had several updates in
>>> Arch)?
>>> --
>>> Cin mailing list
>>> [email protected]
>>> https://lists.cinelerra-gg.org/mailman/listinfo/cin
>>>
>>
From ef0ca8ce72ad55111bbc874e4d1b2d67eeea85a4 Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <[email protected]>
Date: Mon, 5 May 2025 17:24:07 +0300
Subject: [PATCH] libsndfile patch for gcc15

---
 .../thirdparty/src/libsndfile-1.2.2.patch0    | 49 +++++++++++++++++++
 1 file changed, 49 insertions(+)
 create mode 100644 cinelerra-5.1/thirdparty/src/libsndfile-1.2.2.patch0

diff --git a/cinelerra-5.1/thirdparty/src/libsndfile-1.2.2.patch0 b/cinelerra-5.1/thirdparty/src/libsndfile-1.2.2.patch0
new file mode 100644
index 00000000..679716aa
--- /dev/null
+++ b/cinelerra-5.1/thirdparty/src/libsndfile-1.2.2.patch0
@@ -0,0 +1,49 @@
+diff --git a/src/ALAC/alac_decoder.c b/src/ALAC/alac_decoder.c
+index 978919a70..417645316 100644
+--- a/src/ALAC/alac_decoder.c
++++ b/src/ALAC/alac_decoder.c
+@@ -28,6 +28,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <stddef.h>
++#include <stdbool.h>
+ #include <string.h>
+ 
+ #include "alac_codec.h"
+@@ -40,11 +41,6 @@
+ #include "ALACBitUtilities.h"
+ #include "EndianPortable.h"
+ 
+-typedef enum
+-{	false = 0,
+-	true = 1
+-} bool ;
+-
+ // constants/data
+ const uint32_t kMaxBitDepth = 32 ;			// max allowed bit depth is 32
+ 
+diff --git a/src/ALAC/alac_encoder.c b/src/ALAC/alac_encoder.c
+index 29012f3f4..c9395b1d5 100644
+--- a/src/ALAC/alac_encoder.c
++++ b/src/ALAC/alac_encoder.c
+@@ -32,6 +32,7 @@
+ 
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <stdbool.h>
+ #include <string.h>
+ 
+ #include "sfendian.h"
+@@ -46,12 +47,6 @@
+ #include "ALACAudioTypes.h"
+ #include "EndianPortable.h"
+ 
+-typedef enum
+-{
+-	false = 0,
+-	true = 1
+-} bool ;
+-
+ static void	GetConfig (ALAC_ENCODER *p, ALACSpecificConfig * config) ;
+ 
+ static int32_t	EncodeStereo (ALAC_ENCODER *p, struct BitBuffer * bitstream, const int32_t * input, uint32_t stride, uint32_t channelIndex, uint32_t numSamples) ;
-- 
2.49.0

-- 
Cin mailing list
[email protected]
https://lists.cinelerra-gg.org/mailman/listinfo/cin

Reply via email to