Author: al
Date: 2009-12-30 21:31:59 +0100 (Wed, 30 Dec 2009)
New Revision: 2906
Modified:
trunk/librawstudio/rs-macros.h
Log:
Use gdkwin32.h when compiling in windows. GUI_CATCHUP has been implemented
empty, because of missing functions in gdkwin32
Modified: trunk/librawstudio/rs-macros.h
===================================================================
--- trunk/librawstudio/rs-macros.h 2009-12-30 20:26:10 UTC (rev 2905)
+++ trunk/librawstudio/rs-macros.h 2009-12-30 20:31:59 UTC (rev 2906)
@@ -37,10 +37,15 @@
type name##_s[(sizex)*(sizey)+(alignment)-1]; \
type * name = (type *)(((uintptr_t)name##_s+(alignment -
1))&~((uintptr_t)(alignment)-1))
+#ifdef WIN32
+#include <gdk/gdkwin32.h>
+#define GUI_CATCHUP() /* We do not have XFlush or GDK_DISPLAY_XDISPLAY in
Win32*/
+#else
#include <gdk/gdkx.h>
#define GUI_CATCHUP() do { \
GdkDisplay *__gui_catchup_display = gdk_display_get_default (); \
XFlush (GDK_DISPLAY_XDISPLAY (__gui_catchup_display)); } while (0)
+#endif
#define GTK_CATCHUP() while (gtk_events_pending()) gtk_main_iteration()
#if __GNUC__ >= 3
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit