]> pd.if.org Git - pdclib/blobdiff - opt/nothread/cnd_wait.c
dos2unix
[pdclib] / opt / nothread / cnd_wait.c
index 2948d4f2fa27b4711d5104d35472e6da4beb52f8..444e1d477c4e62868edfdb41894c8bfa2613f3b5 100644 (file)
@@ -1,6 +1,18 @@
-#include <threads.h>\r
-\r
-int cnd_wait(cnd_t *cond, mtx_t *mtx)\r
-{\r
-       return thrd_error;\r
-}
\ No newline at end of file
+#ifndef REGTEST
+#include <threads.h>
+
+int cnd_wait(cnd_t *cond, mtx_t *mtx)
+{
+       return thrd_error;
+}
+#endif
+
+#ifdef TEST
+#include "_PDCLIB_test.h"
+
+int main( void )
+{
+    return TEST_RESULTS;
+}
+
+#endif