[mutter] clutter: Fix a couple of guard macros



commit e3c6e3b84d1ae2eb618a4511358d7c6eecb92dd2
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Thu May 24 17:22:40 2018 +0200

    clutter: Fix a couple of guard macros
    
    Use #ifdef instead of #if in a couple of places.

 clutter/clutter/clutter-actor.c                 | 2 +-
 clutter/clutter/egl/clutter-backend-eglnative.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/clutter/clutter/clutter-actor.c b/clutter/clutter/clutter-actor.c
index e70892308..b5eed5234 100644
--- a/clutter/clutter/clutter-actor.c
+++ b/clutter/clutter/clutter-actor.c
@@ -9024,7 +9024,7 @@ _clutter_actor_queue_only_relayout (ClutterActor *self)
       priv->needs_allocation)
     return; /* save some cpu cycles */
 
-#if CLUTTER_ENABLE_DEBUG
+#ifdef CLUTTER_ENABLE_DEBUG
   if (!CLUTTER_ACTOR_IS_TOPLEVEL (self) && CLUTTER_ACTOR_IN_RELAYOUT (self))
     {
       g_warning ("The actor '%s' is currently inside an allocation "
diff --git a/clutter/clutter/egl/clutter-backend-eglnative.c b/clutter/clutter/egl/clutter-backend-eglnative.c
index f22246939..3221d40c7 100644
--- a/clutter/clutter/egl/clutter-backend-eglnative.c
+++ b/clutter/clutter/egl/clutter-backend-eglnative.c
@@ -327,7 +327,7 @@ clutter_egl_get_egl_display (void)
       return 0;
     }
 
-#if COGL_HAS_EGL_SUPPORT
+#ifdef COGL_HAS_EGL_SUPPORT
   return cogl_egl_context_get_egl_display (backend->cogl_context);
 #else
   return 0;


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