2017-12-04 19:23:45 +00:00
|
|
|
#ifndef __FOPEN_UTF8_H
|
|
|
|
#define __FOPEN_UTF8_H
|
|
|
|
|
2017-12-04 15:32:40 +00:00
|
|
|
#include <stdio.h>
|
2017-12-04 19:23:45 +00:00
|
|
|
|
2017-12-04 15:32:40 +00:00
|
|
|
#ifdef _WIN32
|
2017-12-04 19:23:45 +00:00
|
|
|
/* defined to error rather than fopen_utf8, to make it clear to everyone reading the code that not worrying about utf16 is fine */
|
2017-12-04 15:34:56 +00:00
|
|
|
/* TODO: enable */
|
|
|
|
/* #define fopen (use fopen_utf8 instead) */
|
2017-12-04 15:32:40 +00:00
|
|
|
FILE* fopen_utf8(const char * filename, const char * mode);
|
2017-12-04 15:34:56 +00:00
|
|
|
#else
|
|
|
|
#define fopen_utf8 fopen
|
2017-12-04 15:32:40 +00:00
|
|
|
#endif
|
2017-12-04 19:23:45 +00:00
|
|
|
#endif
|