summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
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