Update fopen_utf8.h

This commit is contained in:
Alcaro 2017-12-04 16:34:56 +01:00 committed by GitHub
parent d74ad6cd5e
commit 8df699984e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,9 @@
#include <stdio.h>
#ifdef _WIN32
#define fopen fopen_utf8
/* defined to error rather than fopen_utf8, to make clear to everyone reading the code that not worrying about utf16 is fine */
/* TODO: enable */
/* #define fopen (use fopen_utf8 instead) */
FILE* fopen_utf8(const char * filename, const char * mode);
#else
#define fopen_utf8 fopen
#endif