diff --git a/xpcom/build/dlldeps.cpp b/xpcom/build/dlldeps.cpp index c22a783b223e..45900e1d9ac5 100644 --- a/xpcom/build/dlldeps.cpp +++ b/xpcom/build/dlldeps.cpp @@ -91,7 +91,10 @@ #include "nsHashPropertyBag.h" #include "nsStringAPI.h" #include "nsStringBuffer.h" + +#ifndef WINCE #include "nsWindowsRegKey.h" +#endif void XXXNeverCalled() { @@ -241,5 +244,7 @@ void XXXNeverCalled() b.ToString(0, y); } +#ifndef WINCE NS_NewWindowsRegKey(nsnull); +#endif } diff --git a/xpcom/build/nsXPComInit.cpp b/xpcom/build/nsXPComInit.cpp index 5225a16e2be2..8fe7d391a7c3 100644 --- a/xpcom/build/nsXPComInit.cpp +++ b/xpcom/build/nsXPComInit.cpp @@ -114,7 +114,7 @@ #include "SpecialSystemDirectory.h" -#ifdef XP_WIN +#if defined(XP_WIN) && !defined(WINCE) #include "nsWindowsRegKey.h" #endif @@ -390,7 +390,7 @@ static const nsModuleComponentInfo components[] = { #define NS_HASH_PROPERTY_BAG_CLASSNAME "Hashtable Property Bag" COMPONENT(HASH_PROPERTY_BAG, nsHashPropertyBagConstructor), -#ifdef XP_WIN +#if defined(XP_WIN) && !defined(WINCE) COMPONENT(WINDOWSREGKEY, nsWindowsRegKeyConstructor), #endif };