From 3736e0c85f4a8b624f6f1a27b736c18adbce9c15 Mon Sep 17 00:00:00 2001 From: Bernd Schubert Date: Mon, 2 Jan 2023 22:53:54 +0100 Subject: convert __APPLE__ and __ULIBC__ to HAVE_LIBC_VERSIONED_SYMBOLS In fact only gnu-libc fully supports symbol versioning, so it is better to have a generic macro for it. This also allows to manually disable symbol version and allows to run tests with that configuration on gnu-libc. That testing will still not catch compat issues, but least ensures the code can compile. Testing for __APPLE__ and __ULIBC__ is now done by meson. More of such checks can be added by people using other libcs. --- include/fuse_lowlevel.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/fuse_lowlevel.h') diff --git a/include/fuse_lowlevel.h b/include/fuse_lowlevel.h index 53f0fcf..b76be71 100644 --- a/include/fuse_lowlevel.h +++ b/include/fuse_lowlevel.h @@ -1907,7 +1907,7 @@ struct fuse_cmdline_opts { * @param opts output argument for parsed options * @return 0 on success, -1 on failure */ -#if (!defined(__UCLIBC__) && !defined(__APPLE__)) +#if (defined(HAVE_LIBC_VERSIONED_SYMBOLS)) int fuse_parse_cmdline(struct fuse_args *args, struct fuse_cmdline_opts *opts); #else @@ -1995,7 +1995,7 @@ int fuse_session_loop(struct fuse_session *se); int fuse_session_loop_mt_32(struct fuse_session *se, struct fuse_loop_config *config); #define fuse_session_loop_mt(se, config) fuse_session_loop_mt_32(se, config) #else - #if (!defined(__UCLIBC__) && !defined(__APPLE__)) + #if (defined(HAVE_LIBC_VERSIONED_SYMBOLS)) /** * Enter a multi-threaded event loop. * -- cgit v1.2.3