Converting a comment to an answer to allow the question to be resolved.
getline()
is now a POSIX function; it wasn't in 1997. Your best bet may be to rename the function in fileio.h
and where it is used, maybe as simply as adding before the appearance of getline
and after the #include <stdio.h>
.
#undef getline
#define getline(a, b, c) som_getline(a, b, c)
Use the right number of parameters, or
#define getline(...) som_getline(__VA_ARGS__)
If <stdio.h>
is not yet included, then add it to ensure that getline()
is declared normally, then mapped by your macro.