]> pd.if.org Git - pdclib.old/blobdiff - opt/nothread/mtx_timedlock.c
* Test cleanups: surround the code for all functions by #ifndef REGTEST
[pdclib.old] / opt / nothread / mtx_timedlock.c
index e3cd4fb80b95de29bd41bc13edd978e7d07317e6..6ab7dfb8054b048ebb6d7ba7fd507978e31fea2b 100644 (file)
@@ -1,9 +1,11 @@
+#ifndef REGTEST\r
 #include <threads.h>\r
 \r
 int mtx_timedlock(mtx_t *restrict mtx, const struct timespec *restrict ts)\r
 {\r
        return mtx_lock(mtx);\r
 }\r
+#endif\r
 \r
 #ifdef TEST\r
 #include <_PDCLIB_test.h>\r