]> pd.if.org Git - pdclib.old/blobdiff - opt/nothread/thrd_yield.c
[dlmalloc] correct definition of MMAP
[pdclib.old] / opt / nothread / thrd_yield.c
index 8c7863f643f27e1e7319c41cbae70cd1cdd5d051..2d184ce8138d3a9ea922f94deeec55384d68fbb0 100644 (file)
@@ -1,6 +1,18 @@
+#ifndef REGTEST\r
 #include <threads.h>\r
 \r
 void thrd_yield(void)\r
 {\r
        /* does nothing */\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