This is the mail archive of the newlib-cvs@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[newlib-cygwin] stdio: fseeko/ftello are also POSIX.1-2001


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=1e6205b1ae997347c8a65ba16fcb206920361133

commit 1e6205b1ae997347c8a65ba16fcb206920361133
Author: Yaakov Selkowitz <yselkowi@redhat.com>
Date:   Sun Mar 20 14:21:59 2016 -0500

    stdio: fseeko/ftello are also POSIX.1-2001
    
    _LARGEFILE_SOURCE, which controls only these two functions, is implicitly
    defined by _XOPEN_SOURCE >= 500.  However, they are also later added to
    POSIX.1-2001 (and therefore available by default).
    
    Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>

Diff:
---
 newlib/libc/include/stdio.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/newlib/libc/include/stdio.h b/newlib/libc/include/stdio.h
index ee067f1..9ab5d32 100644
--- a/newlib/libc/include/stdio.h
+++ b/newlib/libc/include/stdio.h
@@ -230,7 +230,7 @@ int	_EXFUN(rename, (const char *, const char *));
 int	_EXFUN(_rename, (const char *, const char *));
 #endif
 #endif
-#if __LARGEFILE_VISIBLE
+#if __LARGEFILE_VISIBLE || __POSIX_VISIBLE >= 200112
 #ifdef _COMPILING_NEWLIB
 int	_EXFUN(fseeko, (FILE *, _off_t, int));
 _off_t	_EXFUN(ftello, ( FILE *));


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]