From 94f172124b219ea83a13e17dff209ca91762bdcd Mon Sep 17 00:00:00 2001 From: "nisheeth%netscape.com" Date: Mon, 9 Aug 1999 22:51:53 +0000 Subject: [PATCH] Checking in a patch that lets us build on a redhat 6.0 box with glibc-2.1.2-3 installed. Thanks a lot to Brian Ryner (bryner@students.uiuc.edu) for the patch. git-svn-id: svn://10.0.0.236/trunk@42837 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/expat/xmltok/xmldef.h | 6 +++++- mozilla/parser/expat/lib/xmldef.h | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/mozilla/expat/xmltok/xmldef.h b/mozilla/expat/xmltok/xmldef.h index dfc4139ebff..f9edff8a4cb 100644 --- a/mozilla/expat/xmltok/xmldef.h +++ b/mozilla/expat/xmltok/xmldef.h @@ -60,7 +60,11 @@ particular environments. */ #define realloc(x, y) PR_Realloc((x), (y)) #define calloc(x, y) PR_Calloc((x),(y)) #define free(x) PR_Free(x) -#define int int32 + +#if PR_BYTES_PER_INT != 4 +typedef PRInt32 int; +#endif + /* Enable Unicode string processing in expat */ #define XML_UNICODE diff --git a/mozilla/parser/expat/lib/xmldef.h b/mozilla/parser/expat/lib/xmldef.h index dfc4139ebff..f9edff8a4cb 100644 --- a/mozilla/parser/expat/lib/xmldef.h +++ b/mozilla/parser/expat/lib/xmldef.h @@ -60,7 +60,11 @@ particular environments. */ #define realloc(x, y) PR_Realloc((x), (y)) #define calloc(x, y) PR_Calloc((x),(y)) #define free(x) PR_Free(x) -#define int int32 + +#if PR_BYTES_PER_INT != 4 +typedef PRInt32 int; +#endif + /* Enable Unicode string processing in expat */ #define XML_UNICODE