X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=opt%2Fnothread%2Fmtx_timedlock.c;h=c9d8f205a523c52fb0384baab1bb8f96aa06b252;hb=4321ebdd142b534d8b7b6c31e01790f77ac46319;hp=6ab7dfb8054b048ebb6d7ba7fd507978e31fea2b;hpb=219271fd548949abce8bd75c34dd42e519418fc4;p=pdclib diff --git a/opt/nothread/mtx_timedlock.c b/opt/nothread/mtx_timedlock.c index 6ab7dfb..c9d8f20 100644 --- a/opt/nothread/mtx_timedlock.c +++ b/opt/nothread/mtx_timedlock.c @@ -1,18 +1,18 @@ -#ifndef REGTEST -#include - -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 \ No newline at end of file +#ifndef REGTEST +#include + +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