mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
Changed the platform-specific ifdefs wrt XP_RANDOM to use HAVE_RANDOM instead.
This commit is contained in:
parent
4b324bdd5d
commit
a1b287c705
@ -86,27 +86,13 @@
|
||||
#define XP_MEMCMP memcmp
|
||||
#define XP_VSPRINTF vsprintf
|
||||
|
||||
#ifdef XP_WIN
|
||||
#define XP_RANDOM rand
|
||||
#define XP_SRANDOM(seed) srand((seed))
|
||||
#endif
|
||||
#ifdef XP_OS2
|
||||
#define XP_RANDOM rand
|
||||
#define XP_SRANDOM(seed) srand((seed))
|
||||
#endif
|
||||
#ifdef XP_MAC
|
||||
#define XP_RANDOM rand
|
||||
#define XP_SRANDOM(seed) srand((seed))
|
||||
#endif
|
||||
#ifdef XP_UNIX
|
||||
#if !defined(XP_RANDOM) || !defined(XP_SRANDOM) /* defined in both xp_mcom.h and xp_str.h */
|
||||
#if defined(UNIXWARE) || defined(_INCLUDE_HPUX_SOURCE) || defined(SOLARIS) || defined(SNI) || defined(NCR)
|
||||
#define XP_RANDOM rand
|
||||
#define XP_SRANDOM(seed) srand((seed))
|
||||
#else
|
||||
#ifdef HAVE_RANDOM
|
||||
#define XP_RANDOM random
|
||||
#define XP_SRANDOM(seed) srandom((seed))
|
||||
#endif
|
||||
#else
|
||||
#define XP_RANDOM rand
|
||||
#define XP_SRANDOM(seed) srand((seed))
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user