+
+#define utf8_to_utf16( utf8, utf16 )\
+ MultiByteToWideChar( CP_UTF8, MB_ERR_INVALID_CHARS, utf8, -1, utf16, sizeof(utf16)/sizeof(wchar_t) )
+FILE *x264_fopen( const char *filename, const char *mode );
+int x264_rename( const char *oldname, const char *newname );
+#define x264_struct_stat struct _stati64
+#define x264_fstat _fstati64
+int x264_stat( const char *path, x264_struct_stat *buf );
+int x264_vfprintf( FILE *stream, const char *format, va_list arg );
+int x264_is_pipe( const char *path );
+#else
+#define x264_fopen fopen
+#define x264_rename rename
+#define x264_struct_stat struct stat
+#define x264_fstat fstat
+#define x264_stat stat
+#define x264_vfprintf vfprintf
+#define x264_is_pipe(x) 0