mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fixed bad gets(3) declaration in stdio.h.
This commit is contained in:
parent
8bac113573
commit
e761332366
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue