]> pd.if.org Git - pdclib.old/blobdiff - opt/nothread/mtx_lock.c
* Test cleanups: surround the code for all functions by #ifndef REGTEST
[pdclib.old] / opt / nothread / mtx_lock.c
index 121444e4b9a255d344825115c0ece923e512d3d7..d086986555dcd48c6808122333bd51bad77b55fd 100644 (file)
@@ -1,5 +1,5 @@
+#ifndef REGTEST\r
 #include <threads.h>\r
-#include <assert.h>\r
 \r
 int mtx_lock(mtx_t *mtx)\r
 {\r
@@ -8,6 +8,7 @@ int mtx_lock(mtx_t *mtx)
                return thrd_success;\r
        } else return thrd_error;\r
 }\r
+#endif\r
 \r
 #ifdef TEST\r
 #include <_PDCLIB_test.h>\r