Fix testing of undefined macro constants to check for definedness instead

Reviewed-By: Robert Bragg <robert@linux.intel.com>
This commit is contained in:
Philip Withnall 2011-07-02 12:39:56 +01:00 committed by Robert Bragg
parent b8b37f6c41
commit d51c3c423e
4 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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 */

View File

@ -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

View File

@ -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