diff --git a/xpcom/io/nsAppFileLocationProvider.cpp b/xpcom/io/nsAppFileLocationProvider.cpp index e1350a2f0a2a..6732ed9fb5be 100644 --- a/xpcom/io/nsAppFileLocationProvider.cpp +++ b/xpcom/io/nsAppFileLocationProvider.cpp @@ -593,7 +593,7 @@ nsAppFileLocationProvider::GetFiles(const char *prop, nsISimpleEnumerator **_ret return rv; } -#if defined(XP_MACOSX) +#if defined(MOZ_WIDGET_COCOA) bool nsAppFileLocationProvider::IsOSXLeopard() { diff --git a/xpcom/io/nsAppFileLocationProvider.h b/xpcom/io/nsAppFileLocationProvider.h index 70b16c6e8feb..c6599ad5281e 100644 --- a/xpcom/io/nsAppFileLocationProvider.h +++ b/xpcom/io/nsAppFileLocationProvider.h @@ -72,7 +72,7 @@ protected: NS_METHOD GetDefaultUserProfileRoot(nsILocalFile **aLocalFile, bool aLocal = false); -#if defined(XP_MACOSX) +#if defined(MOZ_WIDGET_COCOA) static bool IsOSXLeopard(); #endif diff --git a/xpcom/io/nsLocalFileUnix.cpp b/xpcom/io/nsLocalFileUnix.cpp index 10a259287e69..2b7f2f4eb02e 100644 --- a/xpcom/io/nsLocalFileUnix.cpp +++ b/xpcom/io/nsLocalFileUnix.cpp @@ -95,7 +95,7 @@ #include "nsIGnomeVFSService.h" #endif -#ifdef XP_MACOSX +#ifdef MOZ_WIDGET_COCOA #include #include "CocoaFileUtils.h" #include "prmem.h" @@ -273,7 +273,7 @@ nsLocalFile::nsLocalFile(const nsLocalFile& other) { } -#ifdef XP_MACOSX +#ifdef MOZ_WIDGET_COCOA NS_IMPL_THREADSAFE_ISUPPORTS4(nsLocalFile, nsILocalFileMac, nsILocalFile, @@ -1445,7 +1445,7 @@ nsLocalFile::IsExecutable(bool *_retval) } // On OS X, then query Launch Services. -#ifdef XP_MACOSX +#ifdef MOZ_WIDGET_COCOA // Certain Mac applications, such as Classic applications, which // run under Rosetta, might not have the +x mode bit but are still // considered to be executable by Launch Services (bug 646748). @@ -1740,7 +1740,7 @@ nsLocalFile::GetPersistentDescriptor(nsACString &aPersistentDescriptor) NS_IMETHODIMP nsLocalFile::SetPersistentDescriptor(const nsACString &aPersistentDescriptor) { -#ifdef XP_MACOSX +#ifdef MOZ_WIDGET_COCOA if (aPersistentDescriptor.IsEmpty()) return NS_ERROR_INVALID_ARG; @@ -1824,7 +1824,7 @@ nsLocalFile::Reveal() else return gnomevfs->ShowURIForInput(dirPath); } -#elif defined(XP_MACOSX) +#elif defined(MOZ_WIDGET_COCOA) CFURLRef url; if (NS_SUCCEEDED(GetCFURL(&url))) { nsresult rv = CocoaFileUtils::RevealFileInFinder(url); @@ -1893,7 +1893,7 @@ nsLocalFile::Launch() fileUri.Append(mPath); mozilla::AndroidBridge* bridge = mozilla::AndroidBridge::Bridge(); return bridge->OpenUriExternal(fileUri, type) ? NS_OK : NS_ERROR_FAILURE; -#elif defined(XP_MACOSX) +#elif defined(MOZ_WIDGET_COCOA) CFURLRef url; if (NS_SUCCEEDED(GetCFURL(&url))) { nsresult rv = CocoaFileUtils::OpenURL(url); @@ -2056,7 +2056,7 @@ nsLocalFile::GlobalShutdown() // nsILocalFileMac -#ifdef XP_MACOSX +#ifdef MOZ_WIDGET_COCOA static nsresult MacErrorMapper(OSErr inErr) { diff --git a/xpcom/io/nsLocalFileUnix.h b/xpcom/io/nsLocalFileUnix.h index 195d6964d36a..eb9b324090f3 100644 --- a/xpcom/io/nsLocalFileUnix.h +++ b/xpcom/io/nsLocalFileUnix.h @@ -53,7 +53,7 @@ #include "nsReadableUtils.h" #include "nsIHashable.h" #include "nsIClassInfoImpl.h" -#ifdef XP_MACOSX +#ifdef MOZ_WIDGET_COCOA #include "nsILocalFileMac.h" #endif @@ -109,7 +109,7 @@ class nsLocalFile : -#ifdef XP_MACOSX +#ifdef MOZ_WIDGET_COCOA public nsILocalFileMac, #else public nsILocalFile, @@ -126,7 +126,7 @@ public: NS_DECL_ISUPPORTS NS_DECL_NSIFILE NS_DECL_NSILOCALFILE -#ifdef XP_MACOSX +#ifdef MOZ_WIDGET_COCOA NS_DECL_NSILOCALFILEMAC #endif NS_DECL_NSIHASHABLE