libXmu: Branch 'master'

Julien Cristau jcristau at kemper.freedesktop.org
Mon Mar 30 15:37:08 PDT 2009


 src/EditresCom.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 88bd2d387fbb068339b65506331136085082def6
Author: Julien Cristau <jcristau at debian.org>
Date:   Tue Mar 31 00:01:48 2009 +0200

    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 at ens-lyon.org>
    Signed-off-by: Julien Cristau <jcristau at debian.org>

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;


More information about the xorg-commit mailing list