]> pd.if.org Git - pdclib.old/blobdiff - opt/nothread/mtx_trylock.c
* Test cleanups: surround the code for all functions by #ifndef REGTEST
[pdclib.old] / opt / nothread / mtx_trylock.c
index 3333a86f2c313071d50055f7b532661f03a003f1..bffc8b85b139b430df32c437585dd70fe06308b5 100644 (file)
@@ -1,3 +1,4 @@
+#ifndef REGTEST\r
 #include <threads.h>\r
 \r
 int mtx_trylock(mtx_t *mtx)\r
@@ -9,6 +10,7 @@ int mtx_trylock(mtx_t *mtx)
                return thrd_success;\r
        }\r
 }\r
+#endif\r
 \r
 #ifdef TEST\r
 #include <_PDCLIB_test.h>\r