diff options
author | Martin Willi <martin@revosec.ch> | 2014-03-04 13:58:20 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2014-06-04 15:53:08 +0200 |
commit | a43f1e56310f40722a270f043e40285a19818f5c (patch) | |
tree | f0581fe469d035eb5dbb2ac955eecb46aa575c1c /src | |
parent | b70849ada27dae7a01bbf2059b9595a63a2d780f (diff) | |
download | strongswan-a43f1e56310f40722a270f043e40285a19818f5c.tar.bz2 strongswan-a43f1e56310f40722a270f043e40285a19818f5c.tar.xz |
utils: Define a platform directory separator character used in paths
Diffstat (limited to 'src')
-rw-r--r-- | src/libstrongswan/utils/utils.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libstrongswan/utils/utils.h b/src/libstrongswan/utils/utils.h index ced47a4b8..5a455baff 100644 --- a/src/libstrongswan/utils/utils.h +++ b/src/libstrongswan/utils/utils.h @@ -84,6 +84,15 @@ #include "utils/strerror.h" /** + * Directory separator character in paths on this platform + */ +#ifdef WIN32 +# define DIRECTORY_SEPARATOR "\\" +#else +# define DIRECTORY_SEPARATOR "/" +#endif + +/** * Initialize utility functions */ void utils_init(); |