]> pd.if.org Git - pdclib/blobdiff - opt/nothread/mtx_init.c
dos2unix
[pdclib] / opt / nothread / mtx_init.c
index ff506e94e03e5ee67cde2b95fb831c990dea9eab..e1bf08e93ba51583f99f6e06fcf8b38131a38ff8 100644 (file)
@@ -1,7 +1,19 @@
-#include <threads.h>\r
-\r
-int mtx_init(mtx_t *mtx, int type)\r
-{\r
-       *mtx = 0;\r
-       return thrd_success;\r
-}\r
+#ifndef REGTEST
+#include <threads.h>
+
+int mtx_init(mtx_t *mtx, int type)
+{
+       *mtx = 0;
+       return thrd_success;
+}
+#endif
+
+#ifdef TEST
+#include "_PDCLIB_test.h"
+
+int main( void )
+{
+    return TEST_RESULTS;
+}
+
+#endif