diff options
Diffstat (limited to 'ACE/ace/OS_NS_stdlib.h')
-rw-r--r-- | ACE/ace/OS_NS_stdlib.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ACE/ace/OS_NS_stdlib.h b/ACE/ace/OS_NS_stdlib.h index 95e65410297..6d5d0baf642 100644 --- a/ACE/ace/OS_NS_stdlib.h +++ b/ACE/ace/OS_NS_stdlib.h @@ -77,15 +77,17 @@ inline ACE_INT64 ace_strtoull_helper (const char *s, char **ptr, int base) } #endif /* !ACE_LACKS_STRTOULL && !ACE_STRTOULL_EQUIVALENT */ +#if !defined (ACE_LACKS_RAND_R) inline int ace_rand_r_helper (unsigned *seed) { -#if defined (rand_r) +# if defined (rand_r) return rand_r (seed); -#undef rand_r -#else +# undef rand_r +# else return ACE_STD_NAMESPACE::rand_r (seed); -#endif /* rand_r */ +# endif /* rand_r */ } +#endif /* !ACE_LACKS_RAND_R */ ACE_BEGIN_VERSIONED_NAMESPACE_DECL |