From 6bce9e50915d730caa3bd2b60c513fe9915e4b83 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 18 Aug 2022 00:04:37 -0400 Subject: Switch to meson build system --- include/ingen/FilePath.hpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'include/ingen/FilePath.hpp') 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 #include -#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 -- cgit v1.2.1