]> pd.if.org Git - pdclib/blobdiff - opt/nothread/cnd_init.c
PDCLib includes with quotes, not <>.
[pdclib] / opt / nothread / cnd_init.c
index 1683691b19d6810636b025c6b4348988b5babcdf..13f1732e4971877e713f9b9e55c234371ce0aa5e 100644 (file)
@@ -1,3 +1,4 @@
+#ifndef REGTEST\r
 #include <threads.h>\r
 \r
 int cnd_init(cnd_t *cond)\r
@@ -5,3 +6,14 @@ int cnd_init(cnd_t *cond)
        /* does nothing */\r
        return thrd_success;\r
 }\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