From 100944bd7216669701715ddd61059f9d6750a4cf Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Thu, 13 Jul 2017 13:23:32 +0200 Subject: Only declare fuse_new_30() when FUSE_USE_VERSION == 30 This function shouldn't be called when using a newer fuse version, so we should not define it in that case. --- include/fuse.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/fuse.h b/include/fuse.h index f4ac670..19fd12c 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -835,13 +835,13 @@ void fuse_lib_help(struct fuse_args *args); * @return the created FUSE handle */ #if FUSE_USE_VERSION == 30 +struct fuse *fuse_new_30(struct fuse_args *args, const struct fuse_operations *op, + size_t op_size, void *private_data); #define fuse_new(args, op, size, data) fuse_new_30(args, op, size, data) #else struct fuse *fuse_new(struct fuse_args *args, const struct fuse_operations *op, size_t op_size, void *private_data); #endif -struct fuse *fuse_new_30(struct fuse_args *args, const struct fuse_operations *op, - size_t op_size, void *private_data); /** * Mount a FUSE file system. -- cgit v1.2.3