зеркало из https://github.com/mozilla/gecko-dev.git
Bug 691133 - xpcom: fails to build darwin/x11. r=smichaud
This commit is contained in:
Родитель
bb5c591827
Коммит
f24f7e2c2b
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@
|
|||
#include "nsIGnomeVFSService.h"
|
||||
#endif
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
#ifdef MOZ_WIDGET_COCOA
|
||||
#include <Carbon/Carbon.h>
|
||||
#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)
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче