diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2014-05-09 14:25:32 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2014-05-09 14:25:32 +0000 |
commit | 7bc7b551f5db91328a59593287d2f6c2249ee231 (patch) | |
tree | 6f74bbf06ab277b87ca1d80b1e114f2e04d59afb /newlib/libc/include/stdio.h | |
parent | 783e4d51e2327e7231ef2d3dd1848c3ed72aedf3 (diff) | |
download | cygnal-7bc7b551f5db91328a59593287d2f6c2249ee231.tar.gz cygnal-7bc7b551f5db91328a59593287d2f6c2249ee231.tar.bz2 cygnal-7bc7b551f5db91328a59593287d2f6c2249ee231.zip |
* libc/include/stdio.h (tempnam): Declare as __BSD_VISIBLE or
__XSI_VISIBLE or if __POSIX_VISIBLE >= 200112.
Diffstat (limited to 'newlib/libc/include/stdio.h')
-rw-r--r-- | newlib/libc/include/stdio.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/newlib/libc/include/stdio.h b/newlib/libc/include/stdio.h index f57f0f4d4..c7d340c5c 100644 --- a/newlib/libc/include/stdio.h +++ b/newlib/libc/include/stdio.h @@ -162,6 +162,9 @@ typedef _fpos64_t fpos64_t; FILE * _EXFUN(tmpfile, (void)); char * _EXFUN(tmpnam, (char *)); +#if __BSD_VISIBLE || __XSI_VISIBLE || __POSIX_VISIBLE >= 200112 +char * _EXFUN(tempnam, (const char *, const char *)); +#endif int _EXFUN(fclose, (FILE *)); int _EXFUN(fflush, (FILE *)); FILE * _EXFUN(freopen, (const char *__restrict, const char *__restrict, FILE *__restrict)); @@ -265,7 +268,6 @@ int _EXFUN(snprintf, (char *__restrict, size_t, const char *__restrict, ...) _ATTRIBUTE ((__format__ (__printf__, 3, 4)))); int _EXFUN(sniprintf, (char *, size_t, const char *, ...) _ATTRIBUTE ((__format__ (__printf__, 3, 4)))); -char * _EXFUN(tempnam, (const char *, const char *)); int _EXFUN(vasiprintf, (char **, const char *, __VALIST) _ATTRIBUTE ((__format__ (__printf__, 2, 0)))); char * _EXFUN(vasniprintf, (char *, size_t *, const char *, __VALIST) |