2016-05-17 03:04:11 +12:00
|
|
|
#pragma once
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
#ifndef TFILE_IO_H
|
|
|
|
#define TFILE_IO_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#ifdef MACOSX
|
|
|
|
#include <stddef.h>
|
|
|
|
#endif
|
|
|
|
|
2020-05-23 02:17:41 +12:00
|
|
|
#if defined(LINUX) || defined(FREEBSD)
|
2016-03-27 13:44:21 +13:00
|
|
|
#include <wchar.h>
|
|
|
|
#endif
|
|
|
|
|
2016-03-19 06:57:51 +13:00
|
|
|
char *convertWCHAR2CHAR(const wchar_t *fname);
|
|
|
|
|
2020-05-23 02:17:41 +12:00
|
|
|
#if defined(MACOSX) || defined(LINUX) || defined(FREEBSD)
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
|
|
|
|
FILE *_wfopen(const wchar_t *fname, const wchar_t *mode);
|
|
|
|
int _wstat(const wchar_t *fname, struct stat *buf);
|
|
|
|
int _wremove(const wchar_t *fname);
|
|
|
|
#else
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|