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

Bug#164917: xlibs-dev: moving away from Xmd.h arch dependencies



Package: xlibs-dev
Version: 4.2.1-2
Severity: wishlist
Tags: upstream patch

This patch is an effort to start moving X into a more architecture
agnostic source code.

I am going to join the xpert list and see if why they don't use exact
integer types. This may kill the need for most or all of the
architecture dependencies in Xmd.h

--- /usr/include/X11/Xmd.h	2002-10-08 01:05:41.000000000 -0500
+++ includes/Xmd.h	2002-10-13 22:54:46.000000000 -0500
@@ -55,9 +55,11 @@
 /*
  * Special per-machine configuration flags.
  */
-#ifdef CRAY
+#if !defined(WORD64) && defined(CRAY)
 #define WORD64				/* 64-bit architecture */
 #endif
+
+#if !defined(LONG64)
 #if defined(__alpha) || defined(__alpha__) || \
     defined(__ia64__) || defined(ia64) || \
     defined(__sparc64__) || \
@@ -65,7 +67,9 @@
     (defined(__hppa__) && defined(__LP64__))
 #define LONG64				/* 32/64-bit architecture */
 #endif
-#ifdef __sgi
+#endif
+
+#if !defined(LONG64) && defined(__sgi)
 #if (_MIPS_SZLONG == 64)
 #define LONG64
 #endif

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux braindead 2.5.42acpidebug #1 SMP Mon Oct 14 20:29:43 CDT 2002 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages xlibs-dev depends on:
ii  libc6-dev                     2.2.5-15   GNU C Library: Development Librari
ii  xlibs                         4.2.1-2    X Window System client libraries

-- no debconf information





Reply to: