From e043336604b5d253bdeead01eb2435b0dd643090 Mon Sep 17 00:00:00 2001 From: "jdunn%netscape.com" Date: Mon, 3 Dec 2001 23:04:29 +0000 Subject: [PATCH] fixing hp-ux tinderbox orange and aix build bustage when functions are defined they shouldn't be defined extern and when declaring externs, they should be declared globably r=bnesse@netscape.com sr=alecf@netscape.com # 113319 git-svn-id: svn://10.0.0.236/trunk@109559 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/modules/libpref/src/nsPrefService.cpp | 2 +- mozilla/modules/libpref/src/prefapi.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mozilla/modules/libpref/src/nsPrefService.cpp b/mozilla/modules/libpref/src/nsPrefService.cpp index 6ff4bf4b475..cfcdb0e6066 100644 --- a/mozilla/modules/libpref/src/nsPrefService.cpp +++ b/mozilla/modules/libpref/src/nsPrefService.cpp @@ -780,7 +780,7 @@ extern "C" JSBool pref_InitInitialObjects() } -extern JSRuntime* PREF_GetJSRuntime() +JSRuntime* PREF_GetJSRuntime() { nsresult rv; diff --git a/mozilla/modules/libpref/src/prefapi.cpp b/mozilla/modules/libpref/src/prefapi.cpp index 3f7e83a6959..0957645527f 100644 --- a/mozilla/modules/libpref/src/prefapi.cpp +++ b/mozilla/modules/libpref/src/prefapi.cpp @@ -70,6 +70,8 @@ #include #endif +extern JSRuntime* PREF_GetJSRuntime(); + #define BOGUS_DEFAULT_INT_PREF_VALUE (-5632) #define BOGUS_DEFAULT_BOOL_PREF_VALUE (-2) @@ -290,7 +292,6 @@ PRBool pref_VerifyLockFile(char* buf, long buflen) PRBool PREF_Init(const char *filename) { PRBool ok = PR_TRUE, request = PR_FALSE; - extern JSRuntime* PREF_GetJSRuntime(void); /* --ML hash test */ if (!gHashTable) @@ -421,7 +422,6 @@ void PREF_CleanupPrefs() gMochaTaskState = NULL; /* We -don't- destroy this. */ if (gMochaContext) { - extern JSRuntime* PREF_GetJSRuntime(void); JSRuntime *rt; gMochaPrefObject = NULL;