]> pd.if.org Git - pdclib/blobdiff - opt/nothread/cnd_wait.c
PDCLib includes with quotes, not <>.
[pdclib] / opt / nothread / cnd_wait.c
index 2948d4f2fa27b4711d5104d35472e6da4beb52f8..86b70ab663c08f23116686556162086152ce91eb 100644 (file)
@@ -1,6 +1,18 @@
+#ifndef REGTEST\r
 #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
+}\r
+#endif\r
+\r
+#ifdef TEST\r
+#include "_PDCLIB_test.h"\r
+\r
+int main( void )\r
+{\r
+    return TEST_RESULTS;\r
+}\r
+\r
+#endif\r