summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libgphoto2/gphoto2-version.c4
-rw-r--r--libgphoto2_port/libgphoto2_port/gphoto2-port-version.c4
2 files changed, 4 insertions, 4 deletions
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"
diff --git a/libgphoto2_port/libgphoto2_port/gphoto2-port-version.c b/libgphoto2_port/libgphoto2_port/gphoto2-port-version.c
index 10724ab0f..56c517c79 100644
--- a/libgphoto2_port/libgphoto2_port/gphoto2-port-version.c
+++ b/libgphoto2_port/libgphoto2_port/gphoto2-port-version.c
@@ -56,9 +56,9 @@ const char **gp_port_library_version(GPVersionVerbosity verbose)
#ifdef HAVE_RESMGR
"resmgr locking",
-#elif HAVE_TTYLOCK
+#elif defined(HAVE_TTYLOCK)
"ttylock locking",
-#elif HAVE_LOCKDEV
+#elif defined(HAVE_LOCKDEV)
"lockdev locking",
#else
"without locking",