VirtualBox

Changeset 16402 in vbox for trunk/src/libs/xpcom18a4/xpcom


Ignore:
Timestamp:
Jan 30, 2009 12:59:10 AM (16 years ago)
Author:
vboxsync
Message:

XPCOM-darwin/amd64: Replaced ugly expression with VBOX_MACOSX_FOLLOWS_UNIX_IO.

Location:
trunk/src/libs/xpcom18a4/xpcom/io
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/io/nsAppFileLocationProvider.cpp

    r16394 r16402  
    4949#include "nsCRT.h"
    5050
    51 #if (defined(XP_MAC) || defined(XP_MACOSX)) && (!defined(VBOX) || !defined(RT_ARCH_AMD64))
     51#if (defined(XP_MAC) || defined(XP_MACOSX)) && !defined(VBOX_MACOSX_FOLLOWS_UNIX_IO)
    5252#include <Folders.h>
    5353#include <Script.h>
     
    148148    *persistant = PR_TRUE;
    149149
    150 #if (defined (XP_MAC) || defined(XP_MACOSX)) && (!defined(VBOX) || !defined(RT_ARCH_AMD64))
     150#if (defined (XP_MAC) || defined(XP_MACOSX)) && !defined(VBOX_MACOSX_FOLLOWS_UNIX_IO)
    151151    short foundVRefNum;
    152152    long foundDirID;
     
    212212            rv = localFile->AppendRelativeNativePath(PLUGINS_DIR_NAME);
    213213    }
    214 #if (defined(XP_MAC) || defined(XP_MACOSX)) && (!defined(VBOX) || !defined(RT_ARCH_AMD64))
     214#if (defined(XP_MAC) || defined(XP_MACOSX)) && !defined(VBOX_MACOSX_FOLLOWS_UNIX_IO)
    215215    else if (nsCRT::strcmp(prop, NS_MACOSX_USER_PLUGIN_DIR) == 0)
    216216    {
     
    350350    rv = directoryService->Get(prop, NS_GET_IID(nsILocalFile), getter_AddRefs(localDir));
    351351    if (NS_FAILED(rv)) return rv;
    352 #elif defined(XP_MACOSX) && (!defined(VBOX) || !defined(RT_ARCH_AMD64))
     352#elif defined(XP_MACOSX) && !defined(VBOX_MACOSX_FOLLOWS_UNIX_IO)
    353353    FSRef fsRef;
    354354    OSErr err = ::FSFindFolder(kUserDomain, kDomainLibraryFolderType, kCreateFolder, &fsRef);
     
    585585    if (!nsCRT::strcmp(prop, NS_APP_PLUGINS_DIR_LIST))
    586586    {
    587 #if (defined(XP_MAC) || defined(XP_MACOSX)) && (!defined(VBOX) || !defined(RT_ARCH_AMD64))
     587#if (defined(XP_MAC) || defined(XP_MACOSX)) && !defined(VBOX_MACOSX_FOLLOWS_UNIX_IO)
    588588        static const char* osXKeys[] = { NS_APP_PLUGINS_DIR, NS_MACOSX_USER_PLUGIN_DIR, NS_MACOSX_LOCAL_PLUGIN_DIR, nsnull };
    589589        static const char* os9Keys[] = { NS_APP_PLUGINS_DIR, NS_MAC_CLASSIC_PLUGIN_DIR, nsnull };
  • trunk/src/libs/xpcom18a4/xpcom/io/nsLocalFile.h

    r16393 r16402  
    7171#ifdef XP_WIN
    7272#include "nsLocalFileWin.h"
    73 #elif defined(XP_MACOSX) && (!defined(VBOX) || !defined(RT_ARCH_AMD64))
     73#elif defined(XP_MACOSX) && !defined(VBOX_MACOSX_FOLLOWS_UNIX_IO)
    7474#include "nsLocalFileOSX.h"
    7575#elif defined(XP_MAC)
  • trunk/src/libs/xpcom18a4/xpcom/io/nsLocalFileCommon.cpp

    r16395 r16402  
    6262}
    6363
    64 #if (!defined(XP_MAC) && !defined(XP_MACOSX)) || (defined(VBOX) && defined(RT_ARCH_AMD64))
     64#if (!defined(XP_MAC) && !defined(XP_MACOSX)) || defined(VBOX_MACOSX_FOLLOWS_UNIX_IO)
    6565NS_IMETHODIMP
    6666nsLocalFile::InitWithFile(nsILocalFile *aFile)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette