use mzconfig in Xpm to detect 64-bit longs

svn: r7564
This commit is contained in:
Matthew Flatt 2007-10-25 15:31:15 +00:00
parent e17311c4eb
commit 1ea6ddc9e9
2 changed files with 10 additions and 1 deletions

View File

@ -55,7 +55,8 @@ LDFLAGS = $(XLIB)
XPMCC = $(CC)
XPM_CC = $(XPMCC) $(CFLAGS) -c
# Extra -I to get mzconfig.h:
XPM_CC = $(XPMCC) $(CFLAGS) -I../../../../mzscheme -c
OBJS= data.@LTO@ create.@LTO@ misc.@LTO@ rgb.@LTO@ \
scan.@LTO@ parse.@LTO@ hashtab.@LTO@ \

View File

@ -75,6 +75,14 @@ extern FILE *popen();
#define bzero(b, len) memset(b, 0, len)
#endif
/* PLTSCHEME hack: */
#include "mzconfig.h"
#ifdef SIZEOF_LONG
# if SIZEOF_LONG == 8
# define LONG64
# endif
#endif
/* the following is defined in X11R6 but not in previous versions */
#ifdef __alpha
#ifndef LONG64