From 799993c4b7c096c3d131515b127628d8329e395f Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Sat, 4 Dec 2004 21:20:05 +0000 Subject: fix --- include/fuse.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/fuse.h') diff --git a/include/fuse.h b/include/fuse.h index 3223155..ebf8698 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -17,6 +17,7 @@ even older 1.X API define it to 11. */ #ifndef FUSE_USE_VERSION +#warning FUSE_USE_VERSION not defined, defaulting to 21 #define FUSE_USE_VERSION 21 #endif @@ -342,7 +343,6 @@ void __fuse_set_getcontext_func(struct fuse_context *(*func)(void)); # define fuse_new _fuse_new_compat2 # define __fuse_setup _fuse_setup_compat2 # else -# undef FUSE_MAJOR_VERSION # define FUSE_MAJOR_VERSION 1 # define FUSE_MINOR_VERSION 1 # define fuse_statfs _fuse_statfs_compat1 @@ -352,8 +352,8 @@ void __fuse_set_getcontext_func(struct fuse_context *(*func)(void)); # define fuse_mount _fuse_mount_compat1 # define FUSE_DEBUG _FUSE_DEBUG_COMPAT1 # endif -#elif FUSE_USE_VERSION != 22 -# error API version other than 22, 21 and 11 not supported +#elif FUSE_USE_VERSION < 22 +# error Compatibility with API version other than 21 and 11 not supported #endif #ifdef __cplusplus -- cgit v1.2.3