From cde014ca660f113396b7a92fa2e161c9afe4edaa Mon Sep 17 00:00:00 2001 From: "warren%netscape.com" Date: Sat, 20 Nov 1999 05:46:04 +0000 Subject: [PATCH] Added isascii for mac git-svn-id: svn://10.0.0.236/trunk@54040 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/string/obsolete/nsStr.cpp | 4 ++++ mozilla/xpcom/ds/nsStr.cpp | 4 ++++ mozilla/xpcom/string/obsolete/nsStr.cpp | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/mozilla/string/obsolete/nsStr.cpp b/mozilla/string/obsolete/nsStr.cpp index 8d106d0f921..5467e41d465 100644 --- a/mozilla/string/obsolete/nsStr.cpp +++ b/mozilla/string/obsolete/nsStr.cpp @@ -779,6 +779,10 @@ nsStr::HashCode(const nsStr& aDest) #include +#ifdef XP_MAC +#define isascii(c) ((unsigned)(c) < 0x80) +#endif + void nsStr::Print(const nsStr& aDest, FILE* out, PRBool truncate) { diff --git a/mozilla/xpcom/ds/nsStr.cpp b/mozilla/xpcom/ds/nsStr.cpp index 8d106d0f921..5467e41d465 100644 --- a/mozilla/xpcom/ds/nsStr.cpp +++ b/mozilla/xpcom/ds/nsStr.cpp @@ -779,6 +779,10 @@ nsStr::HashCode(const nsStr& aDest) #include +#ifdef XP_MAC +#define isascii(c) ((unsigned)(c) < 0x80) +#endif + void nsStr::Print(const nsStr& aDest, FILE* out, PRBool truncate) { diff --git a/mozilla/xpcom/string/obsolete/nsStr.cpp b/mozilla/xpcom/string/obsolete/nsStr.cpp index 8d106d0f921..5467e41d465 100644 --- a/mozilla/xpcom/string/obsolete/nsStr.cpp +++ b/mozilla/xpcom/string/obsolete/nsStr.cpp @@ -779,6 +779,10 @@ nsStr::HashCode(const nsStr& aDest) #include +#ifdef XP_MAC +#define isascii(c) ((unsigned)(c) < 0x80) +#endif + void nsStr::Print(const nsStr& aDest, FILE* out, PRBool truncate) {