clutter: Fix a couple of guard macros

Use #ifdef instead of #if in a couple of places.
This commit is contained in:
Jonas Ådahl 2018-05-24 17:22:40 +02:00
parent 0d9391e282
commit e3c6e3b84d
2 changed files with 2 additions and 2 deletions

View File

@ -9024,7 +9024,7 @@ _clutter_actor_queue_only_relayout (ClutterActor *self)
priv->needs_allocation) priv->needs_allocation)
return; /* save some cpu cycles */ return; /* save some cpu cycles */
#if CLUTTER_ENABLE_DEBUG #ifdef CLUTTER_ENABLE_DEBUG
if (!CLUTTER_ACTOR_IS_TOPLEVEL (self) && CLUTTER_ACTOR_IN_RELAYOUT (self)) if (!CLUTTER_ACTOR_IS_TOPLEVEL (self) && CLUTTER_ACTOR_IN_RELAYOUT (self))
{ {
g_warning ("The actor '%s' is currently inside an allocation " g_warning ("The actor '%s' is currently inside an allocation "

View File

@ -327,7 +327,7 @@ clutter_egl_get_egl_display (void)
return 0; return 0;
} }
#if COGL_HAS_EGL_SUPPORT #ifdef COGL_HAS_EGL_SUPPORT
return cogl_egl_context_get_egl_display (backend->cogl_context); return cogl_egl_context_get_egl_display (backend->cogl_context);
#else #else
return 0; return 0;