mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-01 11:39:01 +08:00
29 lines
587 B
C
29 lines
587 B
C
#ifndef TK_FILE_H
|
|
#define TK_FILE_H
|
|
|
|
#include "tkc/mem.h"
|
|
#include "misc/new.hpp"
|
|
|
|
#ifdef ___BUILD_MODEL___
|
|
#include <stdio.h>
|
|
#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*/
|