diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2013-04-21 17:53:02 +1000 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2013-04-21 17:53:07 +1000 |
commit | 52fab8ba7e2a728e884a06fa80f9e0a0d4938e05 (patch) | |
tree | 301ed3e671a9130efad6bbade43f13adb47f3081 /include | |
parent | 92db3c951eb9ccd7b327ce7af40e541e72b946ed (diff) | |
download | flac-52fab8ba7e2a728e884a06fa80f9e0a0d4938e05.tar.gz |
Win utf8 treatment for CreateFile.
Patch from Janne Hyvärinen <cse@sci.fi>.
Diffstat (limited to 'include')
-rw-r--r-- | include/share/win_utf8_io.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/share/win_utf8_io.h b/include/share/win_utf8_io.h index c0419b2a..9e2cd4e4 100644 --- a/include/share/win_utf8_io.h +++ b/include/share/win_utf8_io.h @@ -10,7 +10,7 @@ extern "C" { #include <stdio.h> #include <sys/stat.h> #include <stdarg.h> - +#include <windows.h> int get_utf8_argv(int *argc, char ***argv); @@ -28,6 +28,7 @@ int rename_utf8(const char *oldname, const char *newname); size_t strlen_utf8(const char *str); int win_get_console_width(void); int print_console(FILE *stream, const wchar_t *text, uint32_t len); +HANDLE WINAPI CreateFile_utf8(const char *lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile); #ifdef __cplusplus } /* extern "C" */ |