This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository efl.
View the commit online.
commit 212efecb481bb4264c46968f60e4b574e1e28b82
Author: Carsten Haitzler <ras...@rasterman.com>
AuthorDate: Thu May 15 18:18:21 2025 +0100
efl - colder gcc's dont allow dot dot dot args
another fallout of gcc 15's c23 changes and trying to work out of the
box with them. older gcc's...
---
meson.build | 7 +++++++
src/bin/exactness/player.c | 7 ++++++-
src/bin/exactness/recorder.c | 7 ++++++-
3 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/meson.build b/meson.build
index d3d651e0c3..3a6d93ed15 100644
--- a/meson.build
+++ b/meson.build
@@ -161,6 +161,13 @@ if cc.compiles(code, args : '-lc', name : 'environ check')
config_h.set10('HAVE_ENVIRON', true)
endif
+code = '''#include <stdio.h>
+void (*funcp) (...) = NULL;
+'''
+if cc.compiles(code, name: 'funcptr(...) works')
+ config_h.set10('FUNC_DOT_DOT_DOT', true)
+endif
+
cpu_sse3 = false
cpu_neon = false
cpu_neon_intrinsics = false
diff --git a/src/bin/exactness/player.c b/src/bin/exactness/player.c
index 7e47a15664..b8f2226d12 100644
--- a/src/bin/exactness/player.c
+++ b/src/bin/exactness/player.c
@@ -1039,8 +1039,13 @@ _write_unit_file(void)
}
}
#ifdef HAVE_DLSYM
+# ifdef FUNC_DOT_DOT_DOT
+# define FUNCARGS ...
+# else
+# define FUNCARGS
+# endif
# define ORIGINAL_CALL_T(t, name, ...) \
- t (*_original_init_cb)(...); \
+ t (*_original_init_cb)(FUNCARGS); \
_original_init_cb = dlsym(RTLD_NEXT, name); \
original_return = _original_init_cb(__VA_ARGS__);
#else
diff --git a/src/bin/exactness/recorder.c b/src/bin/exactness/recorder.c
index 45394c3c59..4ab668eba4 100644
--- a/src/bin/exactness/recorder.c
+++ b/src/bin/exactness/recorder.c
@@ -300,8 +300,13 @@ _setup_ee_creation(void)
}
#ifdef HAVE_DLSYM
+# ifdef FUNC_DOT_DOT_DOT
+# define FUNCARGS ...
+# else
+# define FUNCARGS
+# endif
# define ORIGINAL_CALL_T(t, name, ...) \
- t (*_original_init_cb)(...); \
+ t (*_original_init_cb)(FUNCARGS); \
_original_init_cb = dlsym(RTLD_NEXT, name); \
original_return = _original_init_cb(__VA_ARGS__);
#else
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.