--- hatari/src/includes/file.h 2019/04/09 08:49:33 1.1.1.14 +++ hatari/src/includes/file.h 2019/04/09 08:54:29 1.1.1.16 @@ -1,16 +1,23 @@ /* Hatari - file.h - This file is distributed under the GNU Public License, version 2 or at - your option any later version. Read the file gpl.txt for details. + This file is distributed under the GNU General Public License, version 2 + or at your option any later version. Read the file gpl.txt for details. */ #ifndef HATARI_FILE_H #define HATARI_FILE_H +#include "config.h" + +#ifndef HAVE_FSEEKO +#define fseeko fseek +#endif + extern void File_CleanFileName(char *pszFileName); extern void File_AddSlashToEndFileName(char *pszFileName); extern bool File_DoesFileExtensionMatch(const char *pszFileName, const char *pszExtension); +extern bool File_ChangeFileExtension(const char *Filename_old, const char *Extension_old , char *Filename_new , const char *Extension_new); extern const char *File_RemoveFileNameDrive(const char *pszFileName); extern bool File_DoesFileNameEndWithSlash(char *pszFileName); extern Uint8 *File_Read(const char *pszFileName, long *pFileSize, const char * const ppszExts[]);