use internal implementation of getline

MacOS doesn't have function getline
This commit is contained in:
Dmitry Podgorny
2012-11-18 04:31:32 +02:00
parent cf3d50f855
commit 2630c111be
3 changed files with 54 additions and 12 deletions

View File

@@ -23,6 +23,7 @@
#ifndef COMMON_H
#define COMMON_H
#include <stdio.h>
#include <glib.h>
#if !GLIB_CHECK_VERSION(2,28,0)
@@ -41,5 +42,6 @@ char * str_replace(const char *string, const char *substr,
const char *replacement);
int str_contains(char str[], int size, char ch);
char* encode_xml(const char * const xml);
char * prof_getline(FILE *stream);
#endif