diff options
author | Heiko Hund <heiko.hund@sophos.com> | 2012-02-16 18:30:38 +0100 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2012-02-16 19:36:24 +0100 |
commit | 76a3c405549bf02902846a9bd0e7d0f3a25a5b4d (patch) | |
tree | 8376774eab563ba35cb8b6e577cd58c77f94670d /misc.c | |
parent | 6449a149f850e9e1207233f3ca642d9342fbfbaf (diff) | |
download | openvpn-76a3c405549bf02902846a9bd0e7d0f3a25a5b4d.tar.gz openvpn-76a3c405549bf02902846a9bd0e7d0f3a25a5b4d.tar.xz openvpn-76a3c405549bf02902846a9bd0e7d0f3a25a5b4d.zip |
replace check for TARGET_WIN32 with WIN32
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>
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 6 |
1 files changed, 3 insertions, 3 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); |