2013-04-01 19:57:13 +11:00
|
|
|
#ifdef _WIN32
|
2013-03-21 19:18:49 +11:00
|
|
|
|
2013-03-22 18:18:14 +11:00
|
|
|
#ifndef flac__win_utf8_io_h
|
|
|
|
|
#define flac__win_utf8_io_h
|
2013-03-21 19:18:49 +11:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <sys/stat.h>
|
|
|
|
|
#include <stdarg.h>
|
2013-04-21 17:53:02 +10:00
|
|
|
#include <windows.h>
|
2013-03-21 19:18:49 +11:00
|
|
|
|
|
|
|
|
int get_utf8_argv(int *argc, char ***argv);
|
|
|
|
|
|
|
|
|
|
int printf_utf8(const char *format, ...);
|
|
|
|
|
int fprintf_utf8(FILE *stream, const char *format, ...);
|
|
|
|
|
int vfprintf_utf8(FILE *stream, const char *format, va_list argptr);
|
|
|
|
|
|
|
|
|
|
FILE *fopen_utf8(const char *filename, const char *mode);
|
|
|
|
|
int stat_utf8(const char *path, struct stat *buffer);
|
2013-04-02 06:27:07 +11:00
|
|
|
int _stat64_utf8(const char *path, struct __stat64 *buffer);
|
2013-03-21 19:18:49 +11:00
|
|
|
int chmod_utf8(const char *filename, int pmode);
|
|
|
|
|
int utime_utf8(const char *filename, struct utimbuf *times);
|
|
|
|
|
int unlink_utf8(const char *filename);
|
|
|
|
|
int rename_utf8(const char *oldname, const char *newname);
|
2013-04-21 17:19:37 +10:00
|
|
|
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);
|
2013-04-21 17:53:02 +10:00
|
|
|
HANDLE WINAPI CreateFile_utf8(const char *lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile);
|
2013-03-21 19:18:49 +11:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
} /* extern "C" */
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|