From 667151e787d64fbe03a16e5efc431faef1b8b68a Mon Sep 17 00:00:00 2001 From: scullin Date: Wed, 22 Apr 1998 00:05:08 +0000 Subject: [PATCH] NSPR related changes submitted by wtc. --- xpcom/components/nsRepository.cpp | 7 +++++-- xpcom/src/nsRepository.cpp | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/xpcom/components/nsRepository.cpp b/xpcom/components/nsRepository.cpp index 808c189feaba..a79270aca291 100644 --- a/xpcom/components/nsRepository.cpp +++ b/xpcom/components/nsRepository.cpp @@ -18,6 +18,9 @@ #include #include +#ifdef _WIN32 +#include +#endif #include "plstr.h" #include "prlink.h" #include "nsRepository.h" @@ -153,7 +156,7 @@ static FactoryEntry *platformFind(const nsCID &aCID) #else // USE_NSREG -#ifdef XP_PC +#ifdef _WIN32 #define USE_REGISTRY static nsresult platformRegister(const nsCID &aCID, const char *aLibrary) @@ -205,7 +208,7 @@ static FactoryEntry *platformFind(const nsCID &aCID) return NULL; } -#endif // XP_PC +#endif // _WIN32 #endif // USE_NSREG diff --git a/xpcom/src/nsRepository.cpp b/xpcom/src/nsRepository.cpp index 808c189feaba..a79270aca291 100644 --- a/xpcom/src/nsRepository.cpp +++ b/xpcom/src/nsRepository.cpp @@ -18,6 +18,9 @@ #include #include +#ifdef _WIN32 +#include +#endif #include "plstr.h" #include "prlink.h" #include "nsRepository.h" @@ -153,7 +156,7 @@ static FactoryEntry *platformFind(const nsCID &aCID) #else // USE_NSREG -#ifdef XP_PC +#ifdef _WIN32 #define USE_REGISTRY static nsresult platformRegister(const nsCID &aCID, const char *aLibrary) @@ -205,7 +208,7 @@ static FactoryEntry *platformFind(const nsCID &aCID) return NULL; } -#endif // XP_PC +#endif // _WIN32 #endif // USE_NSREG