Fixed bad gets(3) declaration in stdio.h.

This commit is contained in:
Jonas 'Sortie' Termansen 2012-08-19 00:50:02 +02:00
parent 8bac113573
commit e761332366
1 changed files with 3 additions and 2 deletions

View File

@ -173,8 +173,9 @@ extern FILE* _firstfile;
#endif
#endif
#if __SORTIX_STDLIB_REDIRECTS
inline char* gets(void) { return sortix_gets(); }
#if (defined(_SOURCE_SOURCE) && __SORTIX_STDLIB_REDIRECTS) || \
defined(_WANT_SORTIX_GETS)
extern char* gets(void) asm ("sortix_gets");
#else
/* traditional gets(3) is no longer POSIX, hence removed. */
#endif