X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=file.c;h=fe6167f3a979d33533bb757f9e4eff713f7f20da;hp=fd7b84e67a67911f171866e25de4418373677145;hb=e11a17b40805b93e1e2ae80129c9d235b6d6119b;hpb=29db4a44edb5cce12197ae1e25129d38f70e0225 diff --git a/file.c b/file.c index fd7b84e..fe6167f 100644 --- a/file.c +++ b/file.c @@ -165,6 +165,11 @@ int file_seek(FILE *fp, long int off, int whence) { return fseek(fp, off, whence); } +int file_putc(FILE *fp, int ch) { + /* Invokes file_exception on windows if fp is null */ + return fputc(ch, fp); +} + /* * Implements libc getline for systems that don't have it, which is * assmed all. This works the same as getline().