]> wimlib.net Git - wimlib/blob - programs/imagex-win32.h
bf1d2a7f0979df29d9abd7851c6d96234914a917
[wimlib] / programs / imagex-win32.h
1 #ifndef _IMAGEX_WIN32_H
2 #define _IMAGEX_WIN32_H
3
4 #include <stddef.h>
5 #include <stdbool.h>
6 #include <wchar.h>
7
8 extern wchar_t *
9 win32_mbs_to_wcs(const char *mbs, size_t mbs_nbytes, size_t *num_wchars_ret);
10
11 extern wchar_t *
12 win32_wbasename(wchar_t *path);
13
14 extern void
15 set_fd_to_binary_mode(int fd);
16
17 #include "wgetopt.h"
18
19 #define optarg                  woptarg
20 #define optind                  woptind
21 #define opterr                  wopterr
22 #define optopt                  woptopt
23 #define option                  woption
24
25 #define getopt_long_only        wgetopt_long_only
26 #define getopt_long             wgetopt_long
27 #define getopt                  wgetopt
28
29 #endif