Bug 1733308 - Fix non-unified builds errors in xpcom/ds. r=xpcom-reviewers,mccr8

xpcom/ds/nsProperties.cpp:56:3: error: use of undeclared identifier 'AppendToArray'; did you mean 'mozilla::AppendToArray'?
xpcom/ds/PLDHashTable.cpp:324:3: error: use of undeclared identifier 'NS_ASSERTION'
xpcom/ds/PLDHashTable.cpp:395:3: error: use of undeclared identifier 'NS_ASSERTION'
xpcom/ds/PLDHashTable.cpp:679:7: error: use of undeclared identifier 'NS_ABORT_OOM'
xpcom/ds/PLDHashTable.cpp:685:7: error: use of undeclared identifier 'NS_ABORT_OOM'

Differential Revision: https://phabricator.services.mozilla.com/D127039
This commit is contained in:
Mike Hommey 2021-10-01 01:49:17 +00:00
parent 1eb69b0bad
commit 26a9899072
3 changed files with 2 additions and 3 deletions

View File

@ -9,6 +9,7 @@
#include <stdlib.h>
#include <string.h>
#include "PLDHashTable.h"
#include "nsDebug.h"
#include "mozilla/HashFunctions.h"
#include "mozilla/MathAlgorithms.h"
#include "mozilla/OperatorNewExtensions.h"

View File

@ -154,5 +154,3 @@ FINAL_LIBRARY = "xul"
PYTHON_UNITTEST_MANIFESTS += [
"test/python.ini",
]
REQUIRES_UNIFIED_BUILD = True

View File

@ -53,7 +53,7 @@ nsProperties::Has(const char* prop, bool* result) {
NS_IMETHODIMP
nsProperties::GetKeys(nsTArray<nsCString>& aKeys) {
AppendToArray(aKeys, this->Keys());
mozilla::AppendToArray(aKeys, this->Keys());
return NS_OK;
}