X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2Fstdio%2Ftmpfile.c;h=b778f3f9dabe374c63a54b551b4e2bbf38d61669;hp=b2c099b0c580d6b6d8cf552ad23349e0aceb1f85;hb=a7a8d2f1c85c2d7760d4d3479e90466cc3a81b04;hpb=afde3daa4992d49e190a6e8677e7317e0d367c59 diff --git a/platform/example/functions/stdio/tmpfile.c b/platform/example/functions/stdio/tmpfile.c index b2c099b..b778f3f 100644 --- a/platform/example/functions/stdio/tmpfile.c +++ b/platform/example/functions/stdio/tmpfile.c @@ -94,8 +94,10 @@ struct _PDCLIB_file_t * tmpfile( void ) int main() { FILE * fh; +#ifndef REGTEST char filename[ L_tmpnam ]; FILE * fhtest; +#endif TESTCASE( ( fh = tmpfile() ) != NULL ); TESTCASE( fputc( 'x', fh ) == 'x' ); /* Checking that file is actually there */