[dia] Bug 675495 - Compile error with libEMF on 64bit



commit 222d8f1b5c47408900638955b094b6a6e28dcc20
Author: Hans Breuer <hans breuer org>
Date:   Sun May 20 19:35:26 2012 +0200

    Bug 675495 - Compile error with libEMF on 64bit
    
    We have to define STRICT to make libemf/64 work. Otherwise there is
    wmf.cpp:1383:40: error: cast from 'void*' to 'W32::HDC' loses precision

 plug-ins/wmf/wmf.cpp |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/wmf/wmf.cpp b/plug-ins/wmf/wmf.cpp
index a417029..80f68cb 100644
--- a/plug-ins/wmf/wmf.cpp
+++ b/plug-ins/wmf/wmf.cpp
@@ -59,9 +59,14 @@ typedef W32::LOGFONTW LOGFONTW;
 #include <pango/pangowin32.h>
 
 #elif HAVE_LIBEMF
+/* We have to define STRICT to make libemf/64 work. Otherwise there is
+wmf.cpp:1383:40: error: cast from 'void*' to 'W32::HDC' loses precision
+ */
+#define STRICT
   namespace W32 {
 #  include <emf.h>
   }
+#undef STRICT
 #else
 #  include "wmf_gdi.h"
 #  define DIRECT_WMF



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]