Bug 1153373 - Move AppendStrongObservers() function definition behind #ifndef MOZILLA_XPCOMRT_API. r=froydnj

This commit is contained in:
Chris Peterson 2015-04-10 11:54:40 -07:00
parent fa3e955d12
commit 46e1fddec4

View File

@ -188,7 +188,6 @@ nsObserverService::CollectReports(nsIHandleReportCallback* aHandleReport,
////////////////////////////////////////////////////////////////////////////////
// nsObserverService Implementation
NS_IMPL_ISUPPORTS(nsObserverService,
nsIObserverService,
nsObserverService,
@ -345,6 +344,7 @@ NS_IMETHODIMP nsObserverService::NotifyObservers(nsISupports* aSubject,
return NS_OK;
}
#if !defined(MOZILLA_XPCOMRT_API)
static PLDHashOperator
AppendStrongObservers(nsObserverList* aObserverList, void* aClosure)
{
@ -355,6 +355,7 @@ AppendStrongObservers(nsObserverList* aObserverList, void* aClosure)
}
return PL_DHASH_NEXT;
}
#endif // !defined(MOZILLA_XPCOMRT_API)
NS_IMETHODIMP
nsObserverService::UnmarkGrayStrongObservers()
@ -372,4 +373,3 @@ nsObserverService::UnmarkGrayStrongObservers()
return NS_OK;
}