]> pd.if.org Git - pdclib.old/blobdiff - opt/nothread/mtx_init.c
[dlmalloc] correct definition of MMAP
[pdclib.old] / opt / nothread / mtx_init.c
index ff506e94e03e5ee67cde2b95fb831c990dea9eab..21bb473e2f88ef813dfc83886f73b8551869f08f 100644 (file)
@@ -1,3 +1,4 @@
+#ifndef REGTEST\r
 #include <threads.h>\r
 \r
 int mtx_init(mtx_t *mtx, int type)\r
@@ -5,3 +6,14 @@ int mtx_init(mtx_t *mtx, int type)
        *mtx = 0;\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