diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2020-12-06 18:49:28 +0000 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2021-01-02 19:46:08 +0000 |
commit | 3dfee979a7e486b8d90f6398ea557d2889855059 (patch) | |
tree | ce9eed1f60a868f30b80d08e2033d7615042f9b4 /src/stdafx.h | |
parent | c288eba81389d07e27b32f28c6dc4dc518824d2b (diff) | |
download | openttd-3dfee979a7e486b8d90f6398ea557d2889855059.tar.xz |
Codechange: Drop libxdg-basedir dependency in favour of finding the directories ourselves
Diffstat (limited to 'src/stdafx.h')
-rw-r--r-- | src/stdafx.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stdafx.h b/src/stdafx.h index dca0e6c6f..12d4fa81d 100644 --- a/src/stdafx.h +++ b/src/stdafx.h @@ -348,6 +348,11 @@ typedef unsigned char byte; # define PERSONAL_DIR "" #endif +/* Define the the platforms that use XDG */ +#if defined(WITH_PERSONAL_DIR) && defined(UNIX) && !defined(__APPLE__) +# define USE_XDG +#endif + /* Check if the types have the bitsizes like we are using them */ static_assert(sizeof(uint64) == 8); static_assert(sizeof(uint32) == 4); |