Rename C++ header files to .hpp
[lttng-tools.git] / src / common / compat / path.hpp
diff --git a/src/common/compat/path.hpp b/src/common/compat/path.hpp
new file mode 100644 (file)
index 0000000..8c3d1de
--- /dev/null
@@ -0,0 +1,18 @@
+/*
+ * Copyright (C) 2020 Jérémie Galarneau <jeremie.galarneau@efficios.com>
+ *
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
+ */
+
+#ifndef _COMPAT_PATH_H
+#define _COMPAT_PATH_H
+
+/* Build platform's preferred path separator. */
+#if defined(_WIN32) || defined(__CYGWIN__)
+#define LTTNG_PATH_SEPARATOR '\\'
+#else
+#define LTTNG_PATH_SEPARATOR '/'
+#endif
+
+#endif /* _COMPAT_PATH_H */
This page took 0.022846 seconds and 4 git commands to generate.