ugh, back out this fix until mac links against raptorbase

This commit is contained in:
alecf%netscape.com 1999-04-15 03:18:43 +00:00
parent ab34197005
commit 6de5845c13
2 changed files with 8 additions and 6 deletions

View File

@ -63,7 +63,8 @@
#include "xpassert.h"
#include "xp_str.h"
#include "nsQuickSort.h"
/* WHS TEMPORARY */
#define XP_QSORT qsort
#if defined(XP_MAC) && defined (__MWERKS__)
/* Can't get the xp people to fix warnings... */
@ -934,7 +935,7 @@ pref_savePref(PRHashEntry *he, int i, void *arg)
}
PR_IMPLEMENT(int)
pref_CompareStrings (const void *v1, const void *v2, void *data)
pref_CompareStrings (const void *v1, const void *v2)
{
char *s1 = *(char**) v1;
char *s2 = *(char**) v2;
@ -1015,7 +1016,7 @@ PREF_SavePrefFileWith(const char *filename, PRHashEnumerator heSaveProc)
PR_HashTableEnumerateEntries(m_HashTable, heSaveProc, valueArray);
/* Sort the preferences to make a readable file on disk */
nsQuickSort(valueArray, m_HashTable->nentries, sizeof(char*), pref_CompareStrings, NULL);
XP_QSORT(valueArray, m_HashTable->nentries, sizeof(char*), pref_CompareStrings);
for (valueIdx = 0; valueIdx < m_HashTable->nentries; valueIdx++)
{
if (valueArray[valueIdx])

View File

@ -63,7 +63,8 @@
#include "xpassert.h"
#include "xp_str.h"
#include "nsQuickSort.h"
/* WHS TEMPORARY */
#define XP_QSORT qsort
#if defined(XP_MAC) && defined (__MWERKS__)
/* Can't get the xp people to fix warnings... */
@ -934,7 +935,7 @@ pref_savePref(PRHashEntry *he, int i, void *arg)
}
PR_IMPLEMENT(int)
pref_CompareStrings (const void *v1, const void *v2, void *data)
pref_CompareStrings (const void *v1, const void *v2)
{
char *s1 = *(char**) v1;
char *s2 = *(char**) v2;
@ -1015,7 +1016,7 @@ PREF_SavePrefFileWith(const char *filename, PRHashEnumerator heSaveProc)
PR_HashTableEnumerateEntries(m_HashTable, heSaveProc, valueArray);
/* Sort the preferences to make a readable file on disk */
nsQuickSort(valueArray, m_HashTable->nentries, sizeof(char*), pref_CompareStrings, NULL);
XP_QSORT(valueArray, m_HashTable->nentries, sizeof(char*), pref_CompareStrings);
for (valueIdx = 0; valueIdx < m_HashTable->nentries; valueIdx++)
{
if (valueArray[valueIdx])