X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ffseterr.h;h=16a1afeeae715534f18ce43540877358a17abcdf;hb=2b14f42b44f04bce5631269ed46cd8be2413ccec;hp=b3930c5a88dbaa5f564696849eebb702183657c8;hpb=81c71120400c0f49c1429bf4b5d5ad89c151123a;p=gnulib.git diff --git a/lib/fseterr.h b/lib/fseterr.h index b3930c5a8..16a1afeea 100644 --- a/lib/fseterr.h +++ b/lib/fseterr.h @@ -19,19 +19,27 @@ #include -#ifdef __cplusplus -extern "C" { -#endif - - /* Set the error indicator of the stream FP. The "error indicator" is set when an I/O operation on the stream fails, and is cleared (together with the "end-of-file" indicator) by clearerr (FP). */ -extern void fseterr (FILE *fp); +#if HAVE___FSETERR /* musl libc */ + +# include +# define fseterr(fp) __fseterr (fp) -#ifdef __cplusplus +#else + +# ifdef __cplusplus +extern "C" { +# endif + +extern void fseterr (FILE *fp); + +# ifdef __cplusplus } +# endif + #endif #endif /* _FSETERR_H */