Use of TARGET_WIN32 breaks MSVC builds as it is only defined
for mingw builds done with the autotools buildsystem.
Signed-off-by: Heiko Hund <heiko.hund@sophos.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Signed-off-by: David Sommerseth <davids@redhat.com>
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));
/*
* execute the command
*/
-#ifdef TARGET_WIN32
+#ifdef WIN32
gc = gc_new ();
ret = _wsystem (wide_string (command, &gc));
gc_free (&gc);
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);
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 *
}
#endif
-#ifdef TARGET_WIN32
+#ifdef WIN32
int openvpn_open (const char *path, int flags, mode_t mode);
#else
static inline int
}
#endif
-#ifdef TARGET_WIN32
+#ifdef WIN32
int openvpn_stat (const char *path, struct stat *buf);
#else
static inline int
return 1;
#endif
-#ifdef TARGET_WIN32
+#ifdef WIN32
SetConsoleOutputCP (CP_UTF8);
#endif