Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * Copyright (C) 2020 Jérémie Galarneau <jeremie.galarneau@efficios.com> | |
3 | * | |
4 | * SPDX-License-Identifier: GPL-2.0-only | |
5 | * | |
6 | */ | |
7 | ||
8 | #ifndef _COMPAT_PATH_H | |
9 | #define _COMPAT_PATH_H | |
10 | ||
11 | /* Build platform's preferred path separator. */ | |
12 | #if defined(_WIN32) || defined(__CYGWIN__) | |
13 | #define LTTNG_PATH_SEPARATOR '\\' | |
14 | #else | |
15 | #define LTTNG_PATH_SEPARATOR '/' | |
16 | #endif | |
17 | ||
18 | #endif /* _COMPAT_PATH_H */ |