X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2Fstdio%2Ftmpfile.c;h=78273422d5c831555a6dd3e8e4c4a4d29bc75337;hp=2d52f60b38c06e7e57712ea3f7e6949d3fa3650f;hb=da0f3f353d417fed71f358a48d5d5394145e460d;hpb=a18343e497615802f47e0f6876b5bed73af674e0 diff --git a/platform/example/functions/stdio/tmpfile.c b/platform/example/functions/stdio/tmpfile.c index 2d52f60..7827342 100644 --- a/platform/example/functions/stdio/tmpfile.c +++ b/platform/example/functions/stdio/tmpfile.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /* tmpfile( void ) This file is part of the Public Domain C Library (PDCLib). @@ -11,22 +9,20 @@ #ifndef REGTEST #include -#include <_PDCLIB_glue.h> - -extern struct _PDCLIB_file_t * _PDCLIB_filelist; +#include "_PDCLIB_glue.h" /* This is a stub implementation of tmpfile */ -struct _PDCLIB_file_t * tmpfile( void ) +FILE* tmpfile( void ) { errno = ENOTSUP; - return 1; + return NULL; } #endif #ifdef TEST -#include <_PDCLIB_test.h> +#include "_PDCLIB_test.h" #include int main( void )