diff --git a/string/obsolete/nsStr.cpp b/string/obsolete/nsStr.cpp index 8d106d0f921..5467e41d465 100644 --- a/string/obsolete/nsStr.cpp +++ b/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/xpcom/ds/nsStr.cpp b/xpcom/ds/nsStr.cpp index 8d106d0f921..5467e41d465 100644 --- a/xpcom/ds/nsStr.cpp +++ b/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/xpcom/string/obsolete/nsStr.cpp b/xpcom/string/obsolete/nsStr.cpp index 8d106d0f921..5467e41d465 100644 --- a/xpcom/string/obsolete/nsStr.cpp +++ b/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) {