X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=opt%2Fnothread%2Fmtx_lock.c;h=2c5a26df3bde69ac94390d356cfbfb94c98946c8;hp=13b0d1ca6b5089e860d7c897c313da8d3239ca05;hb=abc15df6b9fae3374d24c7cf5c3ab94c605b2a6d;hpb=29387e76cd5cd340fe7d811dc9830931d3d0ec9b diff --git a/opt/nothread/mtx_lock.c b/opt/nothread/mtx_lock.c index 13b0d1c..2c5a26d 100644 --- a/opt/nothread/mtx_lock.c +++ b/opt/nothread/mtx_lock.c @@ -1,19 +1,19 @@ -#ifndef REGTEST -#include - -int mtx_lock(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_lock(mtx_t *mtx) +{ + (*mtx)++; + return thrd_success; +} +#endif + +#ifdef TEST +#include "_PDCLIB_test.h" + +int main( void ) +{ + return TEST_RESULTS; +} + +#endif