]> pd.if.org Git - pdclib/blobdiff - opt/nothread/mtx_timedlock.c
Fix warnings
[pdclib] / opt / nothread / mtx_timedlock.c
index e3cd4fb80b95de29bd41bc13edd978e7d07317e6..699d0041cff0499cb313fc0deaec2421d2e4322a 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
@@ -13,4 +15,4 @@ int main( void )
     return TEST_RESULTS;\r
 }\r
 \r
-#endif
\ No newline at end of file
+#endif\r