From 783e4d51e2327e7231ef2d3dd1848c3ed72aedf3 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 9 May 2014 08:42:39 +0000 Subject: [PATCH] * libc/include/stdio.h (fcloseall): Declare as __GNU_VISIBLE only. (renameat): Drop explicit __CYGWIN__ dependency. --- newlib/ChangeLog | 5 +++++ newlib/libc/include/stdio.h | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 11c9566ef..eff176453 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2014-05-09 Corinna Vinschen + + * libc/include/stdio.h (fcloseall): Declare as __GNU_VISIBLE only. + (renameat): Drop explicit __CYGWIN__ dependency. + 2014-05-05 Corinna Vinschen * libc/include/stdio.h: Declare various C99 printf/scanf functions for diff --git a/newlib/libc/include/stdio.h b/newlib/libc/include/stdio.h index 4576f2c69..f57f0f4d4 100644 --- a/newlib/libc/include/stdio.h +++ b/newlib/libc/include/stdio.h @@ -232,6 +232,9 @@ int _EXFUN(fseeko, (FILE *, off_t, int)); off_t _EXFUN(ftello, ( FILE *)); #endif #endif +#if __GNU_VISIBLE +int _EXFUN(fcloseall, (_VOID)); +#endif #if !defined(__STRICT_ANSI__) || (__STDC_VERSION__ >= 199901L) || (__cplusplus >= 201103L) #ifndef _REENT_ONLY int _EXFUN(asiprintf, (char **, const char *, ...) @@ -246,7 +249,6 @@ int _EXFUN(asprintf, (char **__restrict, const char *__restrict, ...) int _EXFUN(diprintf, (int, const char *, ...) _ATTRIBUTE ((__format__ (__printf__, 2, 3)))); #endif -int _EXFUN(fcloseall, (_VOID)); int _EXFUN(fiprintf, (FILE *, const char *, ...) _ATTRIBUTE ((__format__ (__printf__, 2, 3)))); int _EXFUN(fiscanf, (FILE *, const char *, ...) @@ -337,7 +339,7 @@ FILE * _EXFUN(fmemopen, (void *__restrict, size_t, const char *__restrict)); /* getdelim - see __getdelim for now */ /* getline - see __getline for now */ FILE * _EXFUN(open_memstream, (char **, size_t *)); -#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200809 || defined(__CYGWIN__) +#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200809 int _EXFUN(renameat, (int, const char *, int, const char *)); #endif int _EXFUN(vdprintf, (int, const char *__restrict, __VALIST)