]> git.jsancho.org Git - lugaru.git/commit
Rename DATADIR to DATA_DIR to avoid conflict
authorRémi Verschelde <rverschelde@gmail.com>
Sat, 3 Dec 2016 20:51:13 +0000 (21:51 +0100)
committerRémi Verschelde <rverschelde@gmail.com>
Sat, 3 Dec 2016 20:51:13 +0000 (21:51 +0100)
commit38f5e6366de921c4d127c9f8e3e0113cc33ac595
tree5e9f3cf29bd9ddfe074074414b5ce2cc030faa68
parent11ff9aec2c3206a5b9df5bf8815051458628c45a
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
Source/Utils/Folders.h