X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;ds=sidebyside;f=opt%2Fnothread%2Fmtx_trylock.c;h=cd0c701c6fed179ff7b10443a13e2a42fafb20b5;hb=abc15df6b9fae3374d24c7cf5c3ab94c605b2a6d;hp=e7bd8852011e6ef7ee1a487b16b0b1eaab5c917d;hpb=29387e76cd5cd340fe7d811dc9830931d3d0ec9b;p=pdclib diff --git a/opt/nothread/mtx_trylock.c b/opt/nothread/mtx_trylock.c index e7bd885..cd0c701 100644 --- a/opt/nothread/mtx_trylock.c +++ b/opt/nothread/mtx_trylock.c @@ -1,19 +1,19 @@ -#ifndef REGTEST -#include - -int mtx_trylock(mtx_t *mtx) -{ - (*mtx)++; - return thrd_success; -} -#endif - -#ifdef TEST -#include <_PDCLIB_test.h> - -int main( void ) -{ - return TEST_RESULTS; -} - -#endif +#ifndef REGTEST +#include + +int mtx_trylock(mtx_t *mtx) +{ + (*mtx)++; + return thrd_success; +} +#endif + +#ifdef TEST +#include "_PDCLIB_test.h" + +int main( void ) +{ + return TEST_RESULTS; +} + +#endif