X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=file.c;h=fe6167f3a979d33533bb757f9e4eff713f7f20da;hb=7d2b0e9638c08ba7e4cbe3ec88f841a22e5e9a54;hp=b551b149b6fba4dc0c14e2c6b2357d158f169f49;hpb=3567abbd64d4cb5a0db5e434955c83a924635d6f;p=xonotic%2Fgmqcc.git diff --git a/file.c b/file.c index b551b14..fe6167f 100644 --- a/file.c +++ b/file.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2012 + * Copyright (C) 2012, 2013 * Dale Weiler * * Permission is hereby granted, free of charge, to any person obtaining a copy of @@ -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().