X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2Fstdio%2Ftmpfile.c;h=29750d46b2a7757cf785c10fa9756dfc98503622;hb=babe116007c414671ede1a315f16f7936fa3bb0b;hp=b2c099b0c580d6b6d8cf552ad23349e0aceb1f85;hpb=8f26ee1005f7caf1f8b53935e3222c1c58d7c8fe;p=pdclib diff --git a/platform/example/functions/stdio/tmpfile.c b/platform/example/functions/stdio/tmpfile.c index b2c099b..29750d4 100644 --- a/platform/example/functions/stdio/tmpfile.c +++ b/platform/example/functions/stdio/tmpfile.c @@ -91,11 +91,13 @@ struct _PDCLIB_file_t * tmpfile( void ) #include <_PDCLIB_test.h> #include -int main() +int main( void ) { 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 */