diff options
author | Arne Schwabe | 2021-04-22 17:29:38 +0200 |
---|---|---|
committer | Gert Doering | 2021-05-03 08:14:53 +0200 |
commit | d4c1a453c2084fa09baeee58cda0a9823e0b5038 (patch) | |
tree | d421293231e8e736abcabff51a243bef0ddb64da /src/openvpn/syshead.h | |
parent | 8c18d7c9323084d1b346ea303cf8cfd60d280e56 (diff) | |
download | openvpn-d4c1a453c2084fa09baeee58cda0a9823e0b5038.zip openvpn-d4c1a453c2084fa09baeee58cda0a9823e0b5038.tar.gz |
Replace OS_SPECIFIC_DIRSEP with PATH_SEPARATOR
We have two define that do exactly the same. Also move the check
from configure.ac to syshead.h since it is really only checking
for Windows.
Patch V2: Also remove from config-msvc.h
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20210422152939.2134046-5-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22203.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'src/openvpn/syshead.h')
-rw-r--r-- | src/openvpn/syshead.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/openvpn/syshead.h b/src/openvpn/syshead.h index 42465d0..05aaa51 100644 --- a/src/openvpn/syshead.h +++ b/src/openvpn/syshead.h @@ -436,9 +436,11 @@ typedef unsigned short sa_family_t; * Directory separation char */ #ifdef _WIN32 -#define OS_SPECIFIC_DIRSEP '\\' +#define PATH_SEPARATOR '\\' +#define PATH_SEPARATOR_STR "\\" #else -#define OS_SPECIFIC_DIRSEP '/' +#define PATH_SEPARATOR '/' +#define PATH_SEPARATOR_STR "/" #endif /* |