aboutsummaryrefslogtreecommitdiffstats
path: root/include/fuse.h
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2004-12-04 21:20:05 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2004-12-04 21:20:05 +0000
commit799993c4b7c096c3d131515b127628d8329e395f (patch)
treeca56918bbdcd61d44a652a6b4f67563fbd9e81a0 /include/fuse.h
parent0b6a0adc4d44e5b9d0855e257091eec643f3a185 (diff)
downloadlibfuse-799993c4b7c096c3d131515b127628d8329e395f.tar.gz
fix
Diffstat (limited to 'include/fuse.h')
-rw-r--r--include/fuse.h6
1 files changed, 3 insertions, 3 deletions
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