We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70c1144 commit cabbf8eCopy full SHA for cabbf8e
nall/GNUmakefile
@@ -243,4 +243,5 @@ else
243
bindir ?= $(prefix)/bin
244
datarootdir ?= $(prefix)/share
245
datadir ?= $(datarootdir)
246
+ flags += -DDATADIR=\"$(datadir)\"
247
endif
nall/path.hpp
@@ -137,6 +137,8 @@ inline auto sharedData() -> string {
137
result.transform("\\", "/");
138
#elif defined(PLATFORM_MACOS)
139
string result = "/Library/Application Support/";
140
+ #elif defined(DATADIR)
141
+ string result = DATADIR;
142
#else
143
string result = "/usr/share/";
144
#endif
0 commit comments