Changeset 153035 in webkit


Ignore:
Timestamp:
Jul 23, 2013 2:49:31 AM (11 years ago)
Author:
zandobersek@gmail.com
Message:

[GTK] Mock GDK_IS_X11_DISPLAY macro can be redefined unnecessarily
https://bugs.webkit.org/show_bug.cgi?id=118980

Reviewed by Martin Robinson.

  • platform/gtk/GtkVersioning.h: Only define the GDK_IS_X11_DISPLAY macro when using the GTK+ 2 API version

as that's the only supported configuration where the macro is not defined. Definining it only if it's not
yet defined at the time of inclusion of this header can cause redefinitions in GTK+ headers that are normally
included later.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r153032 r153035  
     12013-07-23  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        [GTK] Mock GDK_IS_X11_DISPLAY macro can be redefined unnecessarily
     4        https://bugs.webkit.org/show_bug.cgi?id=118980
     5
     6        Reviewed by Martin Robinson.
     7
     8        * platform/gtk/GtkVersioning.h: Only define the GDK_IS_X11_DISPLAY macro when using the GTK+ 2 API version
     9        as that's the only supported configuration where the macro is not defined. Definining it only if it's not
     10        yet defined at the time of inclusion of this header can cause redefinitions in GTK+ headers that are normally
     11        included later.
     12
    1132013-07-22  Beth Dakin  <bdakin@apple.com>
    214
  • trunk/Source/WebCore/platform/gtk/GtkVersioning.h

    r152552 r153035  
    3737                                       int width, int height);
    3838void gdk_screen_get_monitor_workarea(GdkScreen *, int monitor, GdkRectangle *area);
     39// Define GDK_IS_X11_DISPLAY dummy for GTK+ 2.0 compatibility.
     40#ifdef GDK_WINDOWING_X11
     41#define GDK_IS_X11_DISPLAY(display) 1
     42#else
     43#define GDK_IS_X11_DISPLAY(display) 0
     44#endif
    3945#endif
    4046
     
    4753#endif
    4854
    49 // Define GDK_IS_X11_DISPLAY dummy for GTK+ 2.0 compatibility.
    50 #ifndef GDK_IS_X11_DISPLAY
    51   #ifdef GDK_WINDOWING_X11
    52     #define GDK_IS_X11_DISPLAY(display) 1
    53   #else
    54     #define GDK_IS_X11_DISPLAY(display) 0
    55   #endif
    56 #endif
    57 
    5855G_END_DECLS
    5956
Note: See TracChangeset for help on using the changeset viewer.