diff --git a/mailnews/addrbook/src/nsAbBSDirectory.cpp b/mailnews/addrbook/src/nsAbBSDirectory.cpp index 199889382c1..0a0c86a2a88 100644 --- a/mailnews/addrbook/src/nsAbBSDirectory.cpp +++ b/mailnews/addrbook/src/nsAbBSDirectory.cpp @@ -400,7 +400,7 @@ struct GetDirectories DIR_Server* mServer; }; -PRBool GetDirectories_getDirectory (nsHashKey *aKey, void *aData, void* closure) +PRBool PR_CALLBACK GetDirectories_getDirectory (nsHashKey *aKey, void *aData, void* closure) { GetDirectories* getDirectories = (GetDirectories* )closure; diff --git a/mailnews/addrbook/src/nsAbUtils.cpp b/mailnews/addrbook/src/nsAbUtils.cpp index 0a202660585..669397f2c3a 100644 --- a/mailnews/addrbook/src/nsAbUtils.cpp +++ b/mailnews/addrbook/src/nsAbUtils.cpp @@ -182,7 +182,7 @@ struct closureStruct * into the associated position of the key and * value arrays */ -static PRBool enumerateEntries(nsHashKey *aKey, void *aData, void* closure) +PR_STATIC_CALLBACK(PRBool) enumerateEntries(nsHashKey *aKey, void *aData, void* closure) { closureStruct* s = NS_REINTERPRET_CAST(closureStruct*, closure); nsCStringKey* key = NS_REINTERPRET_CAST(nsCStringKey*, aKey);