X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2Fstdio%2Ftmpfile.c;h=94351caad147da0ce6bf2c498906f5dd9eeb5fb2;hb=f1719b005f40a423cba1962152e71773d36d1a71;hp=2d52f60b38c06e7e57712ea3f7e6949d3fa3650f;hpb=a18343e497615802f47e0f6876b5bed73af674e0;p=pdclib diff --git a/platform/example/functions/stdio/tmpfile.c b/platform/example/functions/stdio/tmpfile.c index 2d52f60..94351ca 100644 --- a/platform/example/functions/stdio/tmpfile.c +++ b/platform/example/functions/stdio/tmpfile.c @@ -13,14 +13,12 @@ #include #include <_PDCLIB_glue.h> -extern struct _PDCLIB_file_t * _PDCLIB_filelist; - /* This is a stub implementation of tmpfile */ -struct _PDCLIB_file_t * tmpfile( void ) +FILE* tmpfile( void ) { errno = ENOTSUP; - return 1; + return NULL; } #endif