]> pd.if.org Git - pdclib/blobdiff - opt/nothread/mtx_timedlock.c
dos2unix
[pdclib] / opt / nothread / mtx_timedlock.c
index b8166b5b97cfee37b74271635a5114db62e19b11..c9d8f205a523c52fb0384baab1bb8f96aa06b252 100644 (file)
@@ -1,6 +1,18 @@
-#include <threads.h>\r
-\r
-int mtx_timedlock(mtx_t *restrict mtx, const struct timespec *restrict ts)\r
-{\r
-       return mtx_lock(mtx);\r
-}
\ No newline at end of file
+#ifndef REGTEST
+#include <threads.h>
+
+int mtx_timedlock(mtx_t *restrict mtx, const struct timespec *restrict ts)
+{
+       return mtx_lock(mtx);
+}
+#endif
+
+#ifdef TEST
+#include "_PDCLIB_test.h"
+
+int main( void )
+{
+    return TEST_RESULTS;
+}
+
+#endif