VirtualBox

Changeset 102231 in vbox


Ignore:
Timestamp:
Nov 22, 2023 9:37:34 AM (12 months ago)
Author:
vboxsync
Message:

libs/xpcom: Remove individual _<os>.h files and merge relevant stuff into prosdep.h, bugref:10545

Location:
trunk/src/libs/xpcom18a4
Files:
6 deleted
2 edited

Legend:

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

    r102226 r102231  
    180180NSPRPUB-MD-HEADERS_IFFLAGS = -m 644
    181181NSPRPUB-MD-HEADERS_SOURCES = \
    182         nsprpub/pr/include/md/_darwin.h \
    183         nsprpub/pr/include/md/_freebsd.h \
    184         nsprpub/pr/include/md/_linux.h \
    185         nsprpub/pr/include/md/_netbsd.h \
    186         nsprpub/pr/include/md/_openbsd.h \
    187         nsprpub/pr/include/md/_solaris.h \
    188182        nsprpub/pr/include/md/_unixos.h \
    189183        nsprpub/pr/include/md/_pth.h \
  • trunk/src/libs/xpcom18a4/nsprpub/pr/include/md/prosdep.h

    r102209 r102231  
    4343*/
    4444#include "prtypes.h"
     45#include "prinrval.h"
     46
     47#ifndef XP_UNIX
     48# error "XPCOM supports only Unixy environments currently!"
     49#endif
     50
     51#ifndef _PR_PTHREADS
     52# error "XPCOM supports pthreads only currently!"
     53#endif
    4554
    4655PR_BEGIN_EXTERN_C
    4756
    48 #if defined(XP_UNIX)
     57NSPR_API(void) _MD_EarlyInit(void);
    4958
    50 #if defined(FREEBSD)
    51 #include "md/_freebsd.h"
     59#define _MD_EARLY_INIT                  _MD_EarlyInit
     60#define _MD_FINAL_INIT                  _PR_UnixInit
    5261
    53 #elif defined(NETBSD)
    54 #include "md/_netbsd.h"
     62#if defined(LINUX) || defined(DARWIN) || defined(NETBSD) || defined(FREEBSD) || defined(OPENBSD)
    5563
    56 #elif defined(OPENBSD)
    57 #include "md/_openbsd.h"
     64NSPR_API(PRIntervalTime) _PR_UNIX_GetInterval(void);
     65NSPR_API(PRIntervalTime) _PR_UNIX_TicksPerSecond(void);
    5866
    59 #elif defined(LINUX)
    60 #include "md/_linux.h"
    61 
    62 #elif defined(DARWIN)
    63 #include "md/_darwin.h"
     67#define _MD_GET_INTERVAL                _PR_UNIX_GetInterval
     68#define _MD_INTERVAL_PER_SEC            _PR_UNIX_TicksPerSecond
    6469
    6570#elif defined(SOLARIS)
    66 #include "md/_solaris.h"
     71
     72NSPR_API(PRIntervalTime) _MD_Solaris_GetInterval(void);
     73NSPR_API(PRIntervalTime) _MD_Solaris_TicksPerSecond(void);
     74
     75# define _MD_GET_INTERVAL               _MD_Solaris_GetInterval
     76# define _MD_INTERVAL_PER_SEC           _MD_Solaris_TicksPerSecond
    6777
    6878#else
    69 #error unknown Unix flavor
    70 
     79# error unknown Unix flavor
    7180#endif
    7281
    7382#include "md/_unixos.h"
    74 
    75 #else
    76 
    77 #error "The platform is not BeOS, Unix, Windows, or Mac"
    78 
    79 #endif
    80 
    81 #ifdef _PR_PTHREADS
    8283#include "md/_pth.h"
    83 #endif
    8484
    8585PR_END_EXTERN_C
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