#ifndef TK_FILE_H #define TK_FILE_H #include "tkc/mem.h" #include "misc/new.hpp" #ifdef ___BUILD_MODEL___ #include #else #include "tkc/utils.h" #include "base/rom_fs.h" #define fopen rom_fopen #define fread rom_fread #define fwrite rom_fwrite #define fclose rom_fclose #define ftell rom_ftell #define ferror rom_ferror #define fseek rom_fseek #define feof rom_feof #define FILE rom_file_t #endif /*___BUILD_MODEL___*/ #if !defined(WINDOWS) && !defined(LINUX) && !defined(APPLE) && !defined(HAS_STDIO) #define printf #define snprintf tk_snprintf #endif #endif /*TK_FILE_H*/