diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2017-07-13 13:23:32 +0200 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2017-07-13 13:27:43 +0200 |
commit | 100944bd7216669701715ddd61059f9d6750a4cf (patch) | |
tree | 09aa9b130b9dea938a78d38449fe764d5182c78d /include/fuse.h | |
parent | 5a5edc3353f468600933112422f080004189a665 (diff) | |
download | libfuse-100944bd7216669701715ddd61059f9d6750a4cf.tar.gz |
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.
Diffstat (limited to 'include/fuse.h')
-rw-r--r-- | include/fuse.h | 4 |
1 files changed, 2 insertions, 2 deletions
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. |