]> pd.if.org Git - pdclib/blobdiff - opt/nothread/cnd_init.c
Fix warnings
[pdclib] / opt / nothread / cnd_init.c
index 1683691b19d6810636b025c6b4348988b5babcdf..9e22f7d89d62a3d71c55f661ceb128b733ba1815 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