summaryrefslogtreecommitdiffstats
path: root/include/ingen/FilePath.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-08-18 00:04:37 -0400
committerDavid Robillard <d@drobilla.net>2022-08-18 01:04:36 -0400
commit6bce9e50915d730caa3bd2b60c513fe9915e4b83 (patch)
tree84ae681b9747ea809ea686dcd0a3ad889beb0d2f /include/ingen/FilePath.hpp
parent5bec7b8de6378bc6cdac5521493a437725048330 (diff)
downloadingen-6bce9e50915d730caa3bd2b60c513fe9915e4b83.tar.gz
ingen-6bce9e50915d730caa3bd2b60c513fe9915e4b83.tar.bz2
ingen-6bce9e50915d730caa3bd2b60c513fe9915e4b83.zip
Switch to meson build system
Diffstat (limited to 'include/ingen/FilePath.hpp')
-rw-r--r--include/ingen/FilePath.hpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/ingen/FilePath.hpp b/include/ingen/FilePath.hpp
index 392b336a..6f0266a7 100644
--- a/include/ingen/FilePath.hpp
+++ b/include/ingen/FilePath.hpp
@@ -26,8 +26,12 @@
#include <string>
#include <utility>
-#if defined(_WIN32) && !defined(__CYGWIN__)
-#define USE_WINDOWS_FILE_PATHS 1
+#ifndef USE_WINDOWS_FILE_PATHS
+# if defined(_WIN32) && !defined(__CYGWIN__)
+# define USE_WINDOWS_FILE_PATHS 1
+# else
+# define USE_WINDOWS_FILE_PATHS 0
+# endif
#endif
namespace ingen {
@@ -41,7 +45,7 @@ namespace ingen {
class INGEN_API FilePath
{
public:
-#ifdef USE_WINDOWS_FILE_PATHS
+#if USE_WINDOWS_FILE_PATHS
using value_type = wchar_t;
static constexpr value_type preferred_separator = L'\\';
#else