Bug 691133 - xpcom: fails to build darwin/x11. r=smichaud

This commit is contained in:
Hanspeter Niederstrasser 2011-10-14 10:43:35 -05:00
Родитель bb5c591827
Коммит f24f7e2c2b
4 изменённых файлов: 12 добавлений и 12 удалений

Просмотреть файл

@ -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