]> pd.if.org Git - pdclib.old/blobdiff - opt/nothread/mtx_init.c
Fix warnings
[pdclib.old] / opt / nothread / mtx_init.c
index 922c9421f45398231c3bd4619ecc24ee58b1c35e..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,6 +6,7 @@ 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
@@ -14,4 +16,4 @@ int main( void )
     return TEST_RESULTS;\r
 }\r
 \r
-#endif
\ No newline at end of file
+#endif\r