[gtk+] win32: Actually check for IPrintDialogCallback in configure
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] win32: Actually check for IPrintDialogCallback in configure
- Date: Thu, 10 Nov 2011 16:49:39 +0000 (UTC)
commit fefe8e7c8ccb19bee43579ae301a7763d2f0dc2b
Author: Morten Welinder <mortenw gnome org>
Date: Fri Oct 28 09:10:40 2011 +0200
win32: Actually check for IPrintDialogCallback in configure
configure.ac | 3 +++
gtk/gtkprintoperation-win32.c | 2 +-
2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 587a9d0..fb5f8ed 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1492,6 +1492,9 @@ if test "x$enable_test_print_backend" != "xno" ; then
fi
AM_CONDITIONAL(TEST_PRINT_BACKEND, test "x$enable_test_print_backend" != "xno")
+if test "$os_win32" = "yes"; then
+ AC_CHECK_TYPES([IPrintDialogCallback],[],[],[[#include <windows.h>]])
+fi
################################################################
# Strip -export-dynamic from the link lines of various libraries
diff --git a/gtk/gtkprintoperation-win32.c b/gtk/gtkprintoperation-win32.c
index 008e7bd..b7c68db 100644
--- a/gtk/gtkprintoperation-win32.c
+++ b/gtk/gtkprintoperation-win32.c
@@ -71,7 +71,7 @@ static void win32_poll_status (GtkPrintOperation *op);
static const GUID myIID_IPrintDialogCallback = {0x5852a2c3,0x6530,0x11d1,{0xb6,0xa3,0x0,0x0,0xf8,0x75,0x7b,0xf9}};
-#if !defined (_MSC_VER) && !defined (__MINGW64_VERSION_MAJOR)
+#if !defined (_MSC_VER) && !defined (HAVE_IPRINTDIALOGCALLBACK)
#undef INTERFACE
#define INTERFACE IPrintDialogCallback
DECLARE_INTERFACE_ (IPrintDialogCallback, IUnknown)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]