From 38f5e6366de921c4d127c9f8e3e0113cc33ac595 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Verschelde?= Date: Sat, 3 Dec 2016 21:51:13 +0100 Subject: [PATCH] Rename DATADIR to DATA_DIR to avoid conflict On MinGW it would error out with: Source/Utils/Folders.cpp:33:45: error: expected primary-expression before ';' token const std::string Folders::dataDir = DATADIR; ^ The issue seems to be that MinGW (and likely MSVC) is case insensitive and would see DATADIR as conflicting with dataDir. --- Source/Utils/Folders.cpp | 5 ++--- Source/Utils/Folders.h | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Source/Utils/Folders.cpp b/Source/Utils/Folders.cpp index e845b3f..33d3b15 100644 --- a/Source/Utils/Folders.cpp +++ b/Source/Utils/Folders.cpp @@ -27,11 +27,10 @@ along with Lugaru. If not, see . #include #endif #if _WIN32 -#include -#include +#include #endif -const std::string Folders::dataDir = DATADIR; +const std::string Folders::dataDir = DATA_DIR; std::string Folders::getScreenshotDir() { diff --git a/Source/Utils/Folders.h b/Source/Utils/Folders.h index 9ed7ae4..d511ac2 100644 --- a/Source/Utils/Folders.h +++ b/Source/Utils/Folders.h @@ -23,8 +23,8 @@ along with Lugaru. If not, see . #include -#ifndef DATADIR -#define DATADIR "Data" +#ifndef DATA_DIR +#define DATA_DIR "Data" #endif class Folders -- 2.39.5