X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=fs.c;h=997b368b13ce6bf801ff5637b9689ae464e853b0;hp=6ff0e8161efb6169af24268e347507560fd4bae3;hb=46752af74b8553b4a0a6d8928a823289308c6f8a;hpb=ccc2eb32988e4ea371308538c2be625fe374846e diff --git a/fs.c b/fs.c index 6ff0e81..997b368 100644 --- a/fs.c +++ b/fs.c @@ -165,11 +165,6 @@ int fs_file_seek(FILE *fp, long int off, int whence) { return fseek(fp, off, whence); } -int fs_file_flush(FILE *fp) { - /* Invokes file_exception on windows if fp is null */ - return fflush(fp); -} - long int fs_file_tell(FILE *fp) { /* Invokes file_exception on windows if fp is null */ return ftell(fp); @@ -298,7 +293,6 @@ int fs_file_getline(char **lineptr, size_t *n, FILE *stream) { #else # if !defined(__MINGW32__) # include /* mkdir */ -# include /* chdir */ int fs_dir_make(const char *path) { return mkdir(path, 0700); @@ -321,8 +315,4 @@ struct dirent *fs_dir_read(DIR *dir) { return readdir(dir); } -int fs_dir_change(const char *path) { - return chdir(path); -} - #endif /*! defined(_WIN32) && !defined(__MINGW32__) */