summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorrpj <rpj>2011-02-27 01:09:58 +0000
committerrpj <rpj>2011-02-27 01:09:58 +0000
commit028341171af582246b1703ec4882e277e2dd98d4 (patch)
treee7df2ba574d976ecec9b2d0389e58bf1b4471227 /tests
parentbb2b1e98aaa1d48662b3a7b8332dd2032991ddfc (diff)
Removed non-thread POSIX compatibility macros
Diffstat (limited to 'tests')
-rw-r--r--tests/test.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test.h b/tests/test.h
index 56fa335..dc63eb4 100644
--- a/tests/test.h
+++ b/tests/test.h
@@ -47,6 +47,12 @@
#define PTW32_THREAD_NULL_ID {NULL,0}
+/*
+ * Some non-thread POSIX API substitutes
+ */
+#define rand_r( _seed ) \
+ ( _seed == _seed? rand() : rand() )
+
#if defined(__MINGW32__)
#include <stdint.h>
#elif defined(__BORLANDC__)