From aa9e8de8af1f6572d268f1cf7b0363738ec73430 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Sun, 3 Oct 2021 16:26:19 +0200 Subject: fix broken check of CPP macro definition after #elif Fix broken check of CPP macro definition after #elif. The fact that this has not been caught yet is indicative of this configuration probably being relatively rare. --- libgphoto2/gphoto2-version.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libgphoto2/gphoto2-version.c') diff --git a/libgphoto2/gphoto2-version.c b/libgphoto2/gphoto2-version.c index a872e7c03..ce85babc3 100644 --- a/libgphoto2/gphoto2-version.c +++ b/libgphoto2/gphoto2-version.c @@ -34,7 +34,7 @@ const char **gp_library_version(GPVersionVerbosity verbose) static const char *shrt[] = { PACKAGE_VERSION, -#if GP_CAMLIB_SET_IS_NONSTANDARD +#ifdef GP_CAMLIB_SET_IS_NONSTANDARD "NON-STANDARD CAMLIB SET" " (" GP_CAMLIB_SET @@ -72,7 +72,7 @@ const char **gp_library_version(GPVersionVerbosity verbose) static const char *verb[] = { PACKAGE_VERSION, -#if GP_CAMLIB_SET_IS_NONSTANDARD +#ifdef GP_CAMLIB_SET_IS_NONSTANDARD "NON-STANDARD CAMLIB SET" #ifdef GP_CAMLIB_SET_SKIPPING " SKIPPING SOME" -- cgit v1.2.1