Changed the platform-specific ifdefs wrt XP_RANDOM to use HAVE_RANDOM instead.

This commit is contained in:
briano%netscape.com 1999-06-10 04:07:09 +00:00
Родитель 4b324bdd5d
Коммит a1b287c705
1 изменённых файлов: 4 добавлений и 18 удалений

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

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