Mac shared library migration.

git-svn-id: svn://10.0.0.236/trunk@15474 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
beard%netscape.com
1998-11-30 22:15:00 +00:00
parent 57c4d48cc4
commit 810f6cfdf2
50 changed files with 473 additions and 179 deletions

View File

@@ -2225,10 +2225,26 @@ pref_ErrorReporter(JSContext *cx, const char *message,
}
}
#if defined(XP_MAC)
#include <Dialogs.h>
#include <Memory.h>
void pref_Alert(char* msg)
{
Str255 pmsg;
SInt16 itemHit;
pmsg[0] = strlen(msg);
BlockMoveData(msg, pmsg + 1, pmsg[0]);
StandardAlert(kAlertPlainAlert, "\pNetscape -- JS Preference Warning", pmsg, NULL, &itemHit);
}
#else
/* Platform specific alert messages */
void pref_Alert(char* msg)
{
#if defined(XP_MAC) || defined(XP_UNIX) || defined(XP_OS2)
#if defined(XP_UNIX) || defined(XP_OS2)
#if defined(XP_UNIX)
if ( getenv("NO_PREF_SPAM") == NULL )
#endif
@@ -2239,6 +2255,7 @@ void pref_Alert(char* msg)
#endif
}
#endif
#ifdef XP_WIN16
#define ADMNLIBNAME "adm1640.dll"