Fix HAVE_* config values checks
authorArkadiy Illarionov <qarkai@gmail.com>
Tue, 20 Feb 2024 19:59:40 +0000 (22:59 +0300)
committerColin Clark <colin.clark@cclark.uk>
Wed, 21 Feb 2024 12:00:44 +0000 (12:00 +0000)
src/image-load.cc
src/secure-save.cc

index e06adfe..aa225ac 100644 (file)
@@ -647,7 +647,7 @@ static void image_loader_stop_loader(ImageLoader *il)
 
 static void image_loader_setup_loader(ImageLoader *il)
 {
-#if defined HAVE_TIFF || defined HAVE_PDF || defined HAVE_HEIF || defined HAVE_DJVU
+#if HAVE_TIFF || HAVE_PDF || HAVE_HEIF || HAVE_DJVU
        gchar *format;
 #endif
 
@@ -915,7 +915,7 @@ static gboolean image_loader_continue(ImageLoader *il)
 
 static gboolean image_loader_begin(ImageLoader *il)
 {
-#if defined HAVE_TIFF || defined HAVE_PDF || defined HAVE_HEIF || defined HAVE_DJVU
+#if HAVE_TIFF || HAVE_PDF || HAVE_HEIF || HAVE_DJVU
        gchar *format;
 #endif
        gssize b;
index 55a27b7..a0dd57d 100644 (file)
@@ -250,7 +250,7 @@ secure_close(SecureSaveInfo *ssi)
         * fclose() (which call fflush() again, but the first one is needed since
         * it doesn't make much sense to flush kernel buffers and then libc buffers,
         * while closing file releases file descriptor we need to call fsync(). */
-#if defined(HAVE_FFLUSH) || defined(HAVE_FSYNC)
+#if HAVE_FFLUSH || HAVE_FSYNC
        if (ssi->secure_save) {
                gboolean fail = FALSE;