OSDN Git Service

Wrap getline() inside #ifdef __USE_GNU
authorEric Andersen <andersen@codepoet.org>
Mon, 21 May 2001 20:09:59 +0000 (20:09 -0000)
committerEric Andersen <andersen@codepoet.org>
Mon, 21 May 2001 20:09:59 +0000 (20:09 -0000)
include/stdio.h

index f8bdfa1..918546e 100644 (file)
@@ -324,6 +324,7 @@ extern char *fgets __P ((char *__restrict __s, int __n,
 extern char *gets __P ((char *__s));
 
 
+#ifdef __USE_GNU
 /* Read up to (and including) a DELIMITER from STREAM into *LINEPTR
    (and null-terminate it). *LINEPTR is a pointer returned from malloc (or
    NULL), pointing to *N characters of space.  It is realloc'd as
@@ -340,6 +341,7 @@ extern ssize_t getdelim __P ((char **__restrict __lineptr,
 extern ssize_t getline __P ((char **__restrict __lineptr,
                                 size_t *__restrict __n,
                                 FILE *__restrict __stream));
+#endif
 
 
 /* Write a string to STREAM.  */