15 lines
381 B
C
Raw Normal View History

2017-12-04 20:23:45 +01:00
#ifndef __FOPEN_UTF8_H
#define __FOPEN_UTF8_H
2017-12-04 16:32:40 +01:00
#include <stdio.h>
2017-12-04 20:23:45 +01:00
2017-12-04 16:32:40 +01:00
#ifdef _WIN32
2017-12-04 20:23:45 +01: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 16:34:56 +01:00
/* TODO: enable */
/* #define fopen (use fopen_utf8 instead) */
2017-12-04 16:32:40 +01:00
FILE* fopen_utf8(const char * filename, const char * mode);
2017-12-04 16:34:56 +01:00
#else
#define fopen_utf8 fopen
2017-12-04 16:32:40 +01:00
#endif
2017-12-04 20:23:45 +01:00
#endif