[PATCH] libmikmod 64bit capability (may improve SDL sound)
Hi list, Ingo,
in the libmikmod library the AMD64 architecture is not properly recognised as
a 64-bit architecture. This leads to misinterpretation of the contents of *.it
files, and as a consequence to sound problems, e.g. in gltron.
The attached patch solves this problem by checking whether _LP64 is set
(which should be valid at least for all 64-bit machines running Linux).
Ingo,
could you include this patch into your patch-set for the next debian package?
Hans-Frieder
--- libmikmod-3.1.11.orig/include/mikmod.h.in 2004-01-21 18:43:53.000000000
+0100
+++ libmikmod-3.1.11/include/mikmod.h.in 2004-07-03 19:10:05.018536304
+0200
@@ -85,7 +85,7 @@
@DOES_NOT_HAVE_SIGNED@
-#if defined(__arch64__) || defined(__alpha)
+#if defined(__arch64__) || defined(__alpha) || defined(_LP64)
/* 64 bit architectures */
typedef signed char SBYTE; /* 1 byte, signed */
--- libmikmod-3.1.11.orig/include/mikmod_internals.h 2004-01-21
18:43:53.000000000 +0100
+++ libmikmod-3.1.11/include/mikmod_internals.h 2004-07-03 19:10:34.509053064
+0200
@@ -50,7 +50,7 @@
/*========== More type definitions */
/* SLONGLONG: 64bit, signed */
-#if defined (__arch64__) || defined(__alpha)
+#if defined (__arch64__) || defined(__alpha) || defined(_LP64)
typedef long SLONGLONG;
#define NATIVE_64BIT_INT
#elif defined(__WATCOMC__)
--
--
Hans-Frieder Vogt e-mail: hfvogt (at) arcor (dot) de
Reply to: