diff options
author | Julien Cristau <jcristau@debian.org> | 2009-03-31 00:01:48 +0200 |
---|---|---|
committer | Julien Cristau <jcristau@debian.org> | 2009-03-31 00:33:44 +0200 |
commit | 88bd2d387fbb068339b65506331136085082def6 (patch) | |
tree | 1b23cc0a2a5a8e932183d5c6d8442509237ee0ca | |
parent | f1ccbcffc9171868256b5813aa558f6756aca508 (diff) | |
download | xorg-lib-libXmu-88bd2d387fbb068339b65506331136085082def6.tar.gz |
libXmu: check for LONG64, not LONG_64
The latter isn't defined anywhere, so editres hasn't been able to read a
pointer on 64bit since about 10 years.
Admittedly, this should be using stdint types, but...
Debian bug#521887 <http://bugs.debian.org/521887>
Reported-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Julien Cristau <jcristau@debian.org>
-rw-r--r-- | src/EditresCom.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/EditresCom.c b/src/EditresCom.c index 28e1be3..51ac248 100644 --- a/src/EditresCom.c +++ b/src/EditresCom.c @@ -2123,7 +2123,7 @@ _XEditresGetStringValues(Widget w, Arg *warg, int numargs) /* try to get the value in the proper size */ switch (res->resource_size) { -#ifdef LONG_64 +#ifdef LONG64 long v8; #endif int v4; @@ -2145,7 +2145,7 @@ _XEditresGetStringValues(Widget w, Arg *warg, int numargs) XtGetValues(w, args, 1); value = (int)v4; break; -#ifdef LONG_64 +#ifdef LONG64 case 8: XtSetArg(args[0], res->resource_name, &v8); XtGetValues(w, args, 1); @@ -2197,7 +2197,7 @@ _XEditresGetStringValues(Widget w, Arg *warg, int numargs) case sizeof(int): XmuSnprintf(buffer, sizeof(buffer), "0x%08x", (int)value); break; -#ifdef LONG_64 +#ifdef LONG64 case sizeof(long): XmuSnprintf(buffer, sizeof(buffer), "0x%016lx", value); break; |