summaryrefslogtreecommitdiffstats
path: root/include
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
parent5bec7b8de6378bc6cdac5521493a437725048330 (diff)
downloadingen-6bce9e50915d730caa3bd2b60c513fe9915e4b83.tar.gz
ingen-6bce9e50915d730caa3bd2b60c513fe9915e4b83.tar.bz2
ingen-6bce9e50915d730caa3bd2b60c513fe9915e4b83.zip
Switch to meson build system
Diffstat (limited to 'include')
-rw-r--r--include/ingen/FilePath.hpp10
-rw-r--r--include/ingen/filesystem.hpp3
2 files changed, 7 insertions, 6 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
diff --git a/include/ingen/filesystem.hpp b/include/ingen/filesystem.hpp
index abe7684e..5e64cc8c 100644
--- a/include/ingen/filesystem.hpp
+++ b/include/ingen/filesystem.hpp
@@ -17,9 +17,6 @@
#ifndef INGEN_FILESYSTEM_HPP
#define INGEN_FILESYSTEM_HPP
-#define _BSD_SOURCE 1
-#define _DEFAULT_SOURCE 1
-
#include "ingen/FilePath.hpp"
#ifdef _WIN32