[gegl] bin: fix #if -> #ifdef - to help meson port



commit 4acf5c064e76ba88715c6e219f2d883c38c63ad2
Author: Félix Piédallu <felix piedallu me>
Date:   Tue Jul 16 14:23:20 2019 +0200

    bin: fix #if -> #ifdef - to help meson port

 bin/argvs.c    | 4 ++--
 bin/gegl.c     | 6 +++---
 bin/mrg-gegl.c | 2 +-
 bin/ui-core.c  | 2 +-
 4 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/bin/argvs.c b/bin/argvs.c
index c4b56d90d..254b754a0 100644
--- a/bin/argvs.c
+++ b/bin/argvs.c
@@ -19,7 +19,7 @@
 #include <unistd.h>
 #include "argvs.h"
 
-#if HAVE_MRG
+#ifdef HAVE_MRG
 #define MRG_PRINTF 1
 #endif
 
@@ -122,7 +122,7 @@ argvs_cleanup (void)
     argvs_free (e);
 }
 
-#if HAVE_MRG
+#ifdef HAVE_MRG
 #include "argvs-commands.inc"
 #else
   int cmd_source (COMMAND_ARGS);
diff --git a/bin/gegl.c b/bin/gegl.c
index 972b11c43..34bd574bc 100644
--- a/bin/gegl.c
+++ b/bin/gegl.c
@@ -105,7 +105,7 @@ main (gint    argc,
   GError      *err       = NULL;
   gchar       *path_root = NULL;
 
-#if HAVE_MRG
+#ifdef HAVE_MRG
   const gchar *renderer = g_getenv ("GEGL_RENDERER");
   if (renderer && ( !strcmp (renderer, "blit-mipmap") ||
                     !strcmp (renderer, "mipmap")))
@@ -116,7 +116,7 @@ main (gint    argc,
 
   g_object_set (gegl_config (),
                 "application-license", "GPL3",
-#if HAVE_MRG
+#ifdef HAVE_MRG
                 "use-opencl", FALSE,
 #endif
                 NULL);
@@ -211,7 +211,7 @@ main (gint    argc,
 
   if (o->mode == GEGL_RUN_MODE_DISPLAY)
     {
-#if HAVE_MRG
+#ifdef HAVE_MRG
       mrg_ui_main (argc, argv, o->rest);
       return 0;
 #endif
diff --git a/bin/mrg-gegl.c b/bin/mrg-gegl.c
index 27cf3d9ec..dd0e55686 100644
--- a/bin/mrg-gegl.c
+++ b/bin/mrg-gegl.c
@@ -25,7 +25,7 @@
 
 #include "config.h"
 
-#if HAVE_MRG
+#ifdef HAVE_MRG
 
 #include <ctype.h>
 #include <string.h>
diff --git a/bin/ui-core.c b/bin/ui-core.c
index 7436986b7..00cba56ab 100644
--- a/bin/ui-core.c
+++ b/bin/ui-core.c
@@ -25,7 +25,7 @@
 
 #include "config.h"
 
-#if HAVE_MRG
+#ifdef HAVE_MRG
 
 #define font_size_scale  0.020
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]