X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=opt%2Fnothread%2Fmtx_init.c;h=e1bf08e93ba51583f99f6e06fcf8b38131a38ff8;hp=ff506e94e03e5ee67cde2b95fb831c990dea9eab;hb=abc15df6b9fae3374d24c7cf5c3ab94c605b2a6d;hpb=b41576197133c1211d6ec353faf93f505f573b8a diff --git a/opt/nothread/mtx_init.c b/opt/nothread/mtx_init.c index ff506e9..e1bf08e 100644 --- a/opt/nothread/mtx_init.c +++ b/opt/nothread/mtx_init.c @@ -1,7 +1,19 @@ -#include - -int mtx_init(mtx_t *mtx, int type) -{ - *mtx = 0; - return thrd_success; -} +#ifndef REGTEST +#include + +int mtx_init(mtx_t *mtx, int type) +{ + *mtx = 0; + return thrd_success; +} +#endif + +#ifdef TEST +#include "_PDCLIB_test.h" + +int main( void ) +{ + return TEST_RESULTS; +} + +#endif