diff options
Diffstat (limited to 'ACE/ace/OS_NS_stdlib.h')
-rw-r--r-- | ACE/ace/OS_NS_stdlib.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ACE/ace/OS_NS_stdlib.h b/ACE/ace/OS_NS_stdlib.h index c7b89a06fc3..6d5d0baf642 100644 --- a/ACE/ace/OS_NS_stdlib.h +++ b/ACE/ace/OS_NS_stdlib.h @@ -77,6 +77,18 @@ 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) + return rand_r (seed); +# undef rand_r +# else + return ACE_STD_NAMESPACE::rand_r (seed); +# endif /* rand_r */ +} +#endif /* !ACE_LACKS_RAND_R */ + ACE_BEGIN_VERSIONED_NAMESPACE_DECL namespace ACE_OS { |