Codechange: Drop libxdg-basedir dependency in favour of finding the directories ourselves

This commit is contained in:
Charles Pigott
2020-12-06 18:49:28 +00:00
parent c288eba813
commit 3dfee979a7
6 changed files with 64 additions and 113 deletions

View File

@@ -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);