[evince] dvi: Fix build for win64



commit d3ab54ef6941b83a25d76d14a0a68640df074380
Author: Hib Eris <hib hiberis nl>
Date:   Fri Feb 17 07:42:46 2012 +0100

    dvi: Fix build for win64

 backend/dvi/mdvi-lib/sysdeps.h |    5 +++++
 configure.ac                   |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/backend/dvi/mdvi-lib/sysdeps.h b/backend/dvi/mdvi-lib/sysdeps.h
index c77d765..655d8fa 100644
--- a/backend/dvi/mdvi-lib/sysdeps.h
+++ b/backend/dvi/mdvi-lib/sysdeps.h
@@ -91,6 +91,10 @@ typedef int		INT;
 typedef unsigned short	UINT;
 typedef short		INT;
 #else
+#if SIZEOF_LONG_LONG == SIZEOF_VOID_P
+typedef unsigned long long	UINT;
+typedef long long		INT;
+#else
 #ifdef __cplusplus
 #include "No.native.pointer-compatible.integer.type.found.Fix.sysdeps.h"
 #else
@@ -99,6 +103,7 @@ typedef short		INT;
 #endif
 #endif
 #endif
+#endif
 
 /* nice, uh? */
 typedef void	*Pointer;
diff --git a/configure.ac b/configure.ac
index 66b14af..a91ed01 100644
--- a/configure.ac
+++ b/configure.ac
@@ -603,6 +603,7 @@ if test "x$enable_dvi" = "xyes"; then
     AC_CHECK_SIZEOF(long, 4)
     AC_CHECK_SIZEOF(int, 4)
     AC_CHECK_SIZEOF(short, 2)
+    AC_CHECK_SIZEOF(long long, 4)
     AC_CHECK_SIZEOF(void *, 4)
     AC_CHECK_LIB([kpathsea],[kpse_init_prog],[enable_dvi=yes],[enable_dvi=no])
 



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