X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=opt%2Fnotime%2Ftime.c;h=32058fe99fe997c77a127ca4a770eef2854c8026;hb=da0f3f353d417fed71f358a48d5d5394145e460d;hp=8f348196c4f9bbf898efa61ac28f225a4d83d535;hpb=7015f5842d05bd5da32523048e4260e60e9e310c;p=pdclib diff --git a/opt/notime/time.c b/opt/notime/time.c index 8f34819..32058fe 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