summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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__)