From: Jarkko Hietaniemi Date: Wed, 15 Nov 2000 23:01:16 +0000 (+0000) Subject: Quick temporary fix for 20001114.008 as suggested by Nick Ing-Simmons. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2b8f445551b321900fa7193fbbf591141fe6f60d;p=p5sagit%2Fp5-mst-13.2.git Quick temporary fix for 20001114.008 as suggested by Nick Ing-Simmons. p4raw-id: //depot/perl@7702 --- diff --git a/nostdio.h b/nostdio.h index 31befc8..770cf97 100644 --- a/nostdio.h +++ b/nostdio.h @@ -7,6 +7,7 @@ sfio.h (inside an _cplusplus gard). It is completely pointless as we have already included it ourselves. */ + #if !defined(_STDIO_H) && !defined(FILE) && !defined(_STDIO_INCLUDED) && !defined(__STDIO_LOADED) #define _STDIO_H #define _STDIO_INCLUDED @@ -17,50 +18,52 @@ struct _FILE; #define _CANNOT "CANNOT" -#undef stdin -#undef stdout -#undef stderr -#undef getc -#undef putc #undef clearerr -#undef fflush +#undef fclose +#undef fdopen #undef feof #undef ferror +#undef fflush +#undef fgetc +#undef fgetpos +#undef fgets #undef fileno - -#undef fprintf -#undef tmpfile -#undef fclose #undef fopen -#undef vfprintf -#undef fgetc +#undef fprintf #undef fputc #undef fputs -#undef ungetc #undef fread -#undef fwrite -#undef fgetpos +#undef freopen +#undef fscanf #undef fseek #undef fsetpos #undef ftell -#undef rewind -#undef fdopen -#undef popen -#undef pclose +#undef fwrite +#undef getc +#undef getc_unlocked #undef getw +#undef pclose +#undef popen +#undef putc +#undef putc_unlocked #undef putw -#undef freopen +#undef rewind #undef setbuf #undef setvbuf -#undef fscanf -#undef fgets -#undef getc_unlocked -#undef putc_unlocked +#undef stderr +#undef stdin +#undef stdout +#undef tmpfile +#undef ungetc +#undef vfprintf + #define fprintf _CANNOT _fprintf_ #define stdin _CANNOT _stdin_ #define stdout _CANNOT _stdout_ #define stderr _CANNOT _stderr_ +#ifndef OS2 #define tmpfile() _CANNOT _tmpfile_ +#endif #define fclose(f) _CANNOT _fclose_ #define fflush(f) _CANNOT _fflush_ #define fopen(p,m) _CANNOT _fopen_ @@ -75,7 +78,9 @@ struct _FILE; #define fputs(s,f) _CANNOT _fputs_ #define getc(f) _CANNOT _getc_ #define putc(c,f) _CANNOT _putc_ +#ifndef OS2 #define ungetc(c,f) _CANNOT _ungetc_ +#endif #define fread(b,s,c,f) _CANNOT _fread_ #define fwrite(b,s,c,f) _CANNOT _fwrite_ #define fgetpos(f,p) _CANNOT _fgetpos_ @@ -102,7 +107,6 @@ struct _FILE; #define popen(c,m) _CANNOT _popen_ #define getw(f) _CANNOT _getw_ #define putw(v,f) _CANNOT _putw_ +#ifndef OS2 #define pclose(f) _CANNOT _pclose_ - - - +#endif