Fix testing of undefined macro constants to check for definedness instead
Reviewed-By: Robert Bragg <robert@linux.intel.com>
This commit is contained in:
parent
b8b37f6c41
commit
d51c3c423e
@ -626,7 +626,7 @@ cogl_fixed_sqrt (CoglFixed x)
|
||||
/*
|
||||
* Find the highest bit set
|
||||
*/
|
||||
#if __arm__
|
||||
#if defined (__arm__)
|
||||
/* This actually requires at least arm v5, but gcc does not seem
|
||||
* to set the architecture defines correctly, and it is I think
|
||||
* very unlikely that anyone will want to use clutter on anything
|
||||
|
@ -34,7 +34,7 @@
|
||||
#include <windows.h>
|
||||
#endif /* COGL_HAS_WIN32_SUPPORT */
|
||||
|
||||
#if COGL_HAS_EGL_PLATFORM_WAYLAND_SUPPORT
|
||||
#if defined (COGL_HAS_EGL_PLATFORM_WAYLAND_SUPPORT)
|
||||
#include <wayland-client.h>
|
||||
#endif /* COGL_HAS_EGL_PLATFORM_WAYLAND_SUPPORT */
|
||||
|
||||
@ -379,7 +379,7 @@ HWND
|
||||
cogl_win32_onscreen_get_window (CoglOnscreen *onscreen);
|
||||
#endif /* COGL_HAS_WIN32_SUPPORT */
|
||||
|
||||
#if COGL_HAS_EGL_PLATFORM_WAYLAND_SUPPORT
|
||||
#if defined (COGL_HAS_EGL_PLATFORM_WAYLAND_SUPPORT)
|
||||
struct wl_surface *
|
||||
cogl_wayland_onscreen_get_surface (CoglOnscreen *onscreen);
|
||||
#endif /* COGL_HAS_EGL_PLATFORM_WAYLAND_SUPPORT */
|
||||
|
@ -34,7 +34,7 @@
|
||||
#include <X11/Xlib.h>
|
||||
#endif
|
||||
|
||||
#if COGL_HAS_EGL_PLATFORM_WAYLAND_SUPPORT
|
||||
#if defined (COGL_HAS_EGL_PLATFORM_WAYLAND_SUPPORT)
|
||||
#include <wayland-client.h>
|
||||
#endif
|
||||
|
||||
@ -53,7 +53,7 @@ struct _CoglRenderer
|
||||
GModule *libgl_module;
|
||||
#endif
|
||||
|
||||
#if COGL_HAS_EGL_PLATFORM_WAYLAND_SUPPORT
|
||||
#if defined (COGL_HAS_EGL_PLATFORM_WAYLAND_SUPPORT)
|
||||
struct wl_display *foreign_wayland_display;
|
||||
struct wl_compositor *foreign_wayland_compositor;
|
||||
#endif
|
||||
|
@ -93,7 +93,7 @@ typedef struct _CoglFramebuffer CoglFramebuffer;
|
||||
#include <cogl/cogl-xlib.h>
|
||||
#include <cogl/cogl-xlib-renderer.h>
|
||||
#endif
|
||||
#if COGL_HAS_EGL_PLATFORM_WAYLAND_SUPPORT
|
||||
#if defined (COGL_HAS_EGL_PLATFORM_WAYLAND_SUPPORT)
|
||||
#include <cogl/cogl-wayland-renderer.h>
|
||||
#endif
|
||||
/* XXX: This will definitly go away once all the Clutter winsys
|
||||
|
Loading…
Reference in New Issue
Block a user