1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
Author: Tj <debian@iam.tj>
Last-Update: 2025-09-27
Forwarded: not-needed
Description: Fix FTBFS for C23
diff --git a/include/libast/types.h.in b/include/libast/types.h.in
index 61c81ba..fd4ffd7 100644
--- a/include/libast/types.h.in
+++ b/include/libast/types.h.in
@@ -604,7 +604,11 @@ typedef void *spif_ptr_t;
*
* @see @link DOXGRP_TYPES Portable Data Types @endlink
*/
+#if defined (__STDC_VERSION__) && __STDC_VERSION__ < 202311L
typedef void * (*spif_func_t)();
+#else
+typedef void * (*spif_func_t)(...);
+#endif
/**
* A class name.
@@ -936,12 +940,16 @@ typedef enum {
*/
typedef enum {
#ifndef __cplusplus
+#if defined (__STDC_VERSION__) && __STDC_VERSION__ < 202311L
false = 0,
+#endif
#endif
False = 0,
FALSE = 0,
#ifndef __cplusplus
+#if defined (__STDC_VERSION__) && __STDC_VERSION__ < 202311L
true = 1,
+#endif
#endif
True = 1,
TRUE = 1
|