diff options
-rw-r--r-- | misc.c | 6 | ||||
-rw-r--r-- | misc.h | 6 | ||||
-rw-r--r-- | openvpn.c | 2 |
3 files changed, 7 insertions, 7 deletions
@@ -356,7 +356,7 @@ int openvpn_chdir (const char* dir) { #ifdef HAVE_CHDIR -#ifdef TARGET_WIN32 +#ifdef WIN32 int res; struct gc_arena gc = gc_new (); res = _wchdir (wide_string (dir, &gc)); @@ -598,7 +598,7 @@ openvpn_system (const char *command, const struct env_set *es, unsigned int flag /* * execute the command */ -#ifdef TARGET_WIN32 +#ifdef WIN32 gc = gc_new (); ret = _wsystem (wide_string (command, &gc)); gc_free (&gc); @@ -627,7 +627,7 @@ openvpn_system (const char *command, const struct env_set *es, unsigned int flag int openvpn_access (const char *path, int mode) { -#ifdef TARGET_WIN32 +#ifdef WIN32 struct gc_arena gc = gc_new (); int ret = _waccess (wide_string (path, &gc), mode); gc_free (&gc); @@ -147,7 +147,7 @@ openvpn_run_script (const struct argv *a, const struct env_set *es, const unsign return openvpn_execve_check(a, es, flags | S_SCRIPT, msg); }; -#ifdef TARGET_WIN32 +#ifdef WIN32 FILE * openvpn_fopen (const char *path, const char *mode); #else static inline FILE * @@ -157,7 +157,7 @@ openvpn_fopen (const char *path, const char *mode) } #endif -#ifdef TARGET_WIN32 +#ifdef WIN32 int openvpn_open (const char *path, int flags, mode_t mode); #else static inline int @@ -167,7 +167,7 @@ openvpn_open (const char *path, int flags, mode_t mode) } #endif -#ifdef TARGET_WIN32 +#ifdef WIN32 int openvpn_stat (const char *path, struct stat *buf); #else static inline int @@ -131,7 +131,7 @@ main (int argc, char *argv[]) return 1; #endif -#ifdef TARGET_WIN32 +#ifdef WIN32 SetConsoleOutputCP (CP_UTF8); #endif |