X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=opt%2Fnotime%2Ftime.c;h=3933af61a89ad10647f265087b7334aead107e4c;hb=4fe88a1c445105a96d08b808831d6fc7480a211d;hp=8f348196c4f9bbf898efa61ac28f225a4d83d535;hpb=f2e874bbb30fa8857975a683a17dce7669524520;p=pdclib.old diff --git a/opt/notime/time.c b/opt/notime/time.c index 8f34819..3933af6 100644 --- a/opt/notime/time.c +++ b/opt/notime/time.c @@ -1,7 +1,19 @@ #include +#ifndef REGTEST time_t time(time_t* t) { if(t) *t = -1; return -1; -} \ No newline at end of file +} +#endif + +#ifdef TEST +#include <_PDCLIB_test.h> + +int main( void ) +{ + return TEST_RESULTS; +} + +#endif