What I'm talking about is if there's a macro that's defined only if GNU libc is used, so if not, I can just use standard functions.
Code:
int linesize = BUFSIZ;
char* line = malloc(linesize * sizeof(char));
#ifdef glibc
while (getline(&line, &linesize, file))
#else
while (fgets(line, linesize, file))
#endif
{
// do stuff
}
free(line);