Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Only declare getline portability cruft if it is needed (it's not used so far), it...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 16 Mar 2007 14:57:12 +0000 (14:57 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 16 Mar 2007 14:57:12 +0000 (14:57 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3305 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/xbt/getline.c

index dfda650..f228d37 100644 (file)
@@ -22,6 +22,7 @@
 #include "xbt/sysdep.h" /* headers of this function */
 #include "portable.h"
 
 #include "xbt/sysdep.h" /* headers of this function */
 #include "portable.h"
 
+#ifndef HAVE_GETLINE
 ssize_t getline(char **buf, size_t *n, FILE *stream) {
    
    int i, ch;
 ssize_t getline(char **buf, size_t *n, FILE *stream) {
    
    int i, ch;
@@ -56,4 +57,4 @@ ssize_t getline(char **buf, size_t *n, FILE *stream) {
    return (ssize_t)i;
 }
 
    return (ssize_t)i;
 }
 
-
+#endif /* HAVE_GETLINE */