VirtualBox

Changeset 16391 in vbox for trunk/src/libs/xpcom18a4


Ignore:
Timestamp:
Jan 29, 2009 10:50:11 PM (16 years ago)
Author:
vboxsync
Message:

XPCOM-darwin/amd64: brushed up the _darwin.h for AMD64 support, using IPRT for the atomic assembly bits.

Location:
trunk/src/libs/xpcom18a4
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/Makefile.kmk

    r16390 r16391  
    412412NSPRPUB-MD-HEADERS_IFFLAGS = -m 644
    413413NSPRPUB-MD-HEADERS_SOURCES = \
     414        nsprpub/pr/include/md/_iprt_atomic.h \
    414415        nsprpub/pr/include/md/_darwin.h \
    415416        nsprpub/pr/include/md/_freebsd.h \
  • trunk/src/libs/xpcom18a4/nsprpub/pr/include/md/_darwin.h

    r589 r16391  
    5353#elif defined(__ppc__)
    5454#define _PR_SI_ARCHITECTURE "ppc"
     55#elif defined(__amd64__)
     56#define _PR_SI_ARCHITECTURE "amd64"
     57#else
     58#error "unknown architecture."
    5559#endif
    5660#define PR_DLL_SUFFIX           ".dylib"
     
    6468#define HAVE_DLL
    6569#define USE_MACH_DYLD
    66 #define _PR_HAVE_SOCKADDR_LEN 
     70#define _PR_HAVE_SOCKADDR_LEN
    6771#define _PR_STAT_HAS_ST_ATIMESPEC
    6872#define _PR_HAVE_LARGE_OFF_T
     
    103107#endif
    104108
     109#ifdef VBOX_USE_MORE_IPRT_IN_NSPR
     110# include "_iprt_atomic.h"
     111#else  /* !VBOX_USE_MORE_IPRT_IN_NSPR */
    105112#if defined(__ppc__)
    106113#define _PR_HAVE_ATOMIC_OPS
     
    126133#define _MD_ATOMIC_ADD(ptr, val)    _PR_Darwin_x86_AtomicAdd(ptr, val)
    127134#endif /* __i386__ */
     135#endif /* !VBOX_USE_MORE_IPRT_IN_NSPR */
    128136
    129137#define USE_SETJMP
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