We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d609d5e commit f7c952cCopy full SHA for f7c952c
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