Mercurial > molko
diff libmlk-core/core/sys.c @ 313:dbfe05b88627
cmake: bring back for good
It's just too complicated to get portability done right using pure GNU make and
since we're targeting more OSes than Linux we have to incorporate some
portability bits.
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 22 Sep 2021 07:19:32 +0200 |
parents | 0858e33a762d |
children | d01e83210ca2 |
line wrap: on
line diff
--- a/libmlk-core/core/sys.c Thu Sep 09 15:30:07 2021 +0200 +++ b/libmlk-core/core/sys.c Wed Sep 22 07:19:32 2021 +0200 @@ -51,9 +51,9 @@ }; static const char *paths[] = { - [SYS_DIR_BIN] = MOLKO_BINDIR, - [SYS_DIR_DATA] = MOLKO_DATADIR, - [SYS_DIR_LOCALE] = MOLKO_LOCALEDIR + [SYS_DIR_BIN] = MLK_BINDIR, + [SYS_DIR_DATA] = MLK_DATADIR, + [SYS_DIR_LOCALE] = MLK_LOCALEDIR }; static inline char * @@ -84,7 +84,7 @@ char *base, *binsect; if ((base = getenv("MLK_ROOT"))) { - snprintf(ret, sizeof (ret), "%s/%s/%s", base, MOLKO_PREFIX, paths[kind]); + snprintf(ret, sizeof (ret), "%s/%s/%s", base, MLK_PREFIX, paths[kind]); } else { /* * Some system does not provide support (shame on you OpenBSD) @@ -92,7 +92,7 @@ * instead. */ if (!(base = SDL_GetBasePath())) - snprintf(ret, sizeof (ret), "%s/%s", MOLKO_PREFIX, paths[kind]); + snprintf(ret, sizeof (ret), "%s/%s", MLK_PREFIX, paths[kind]); else { /* * Decompose the path to the given special directory by @@ -108,7 +108,7 @@ * the binary. * * Put the base path into the path and remove the value - * of MOLKO_BINDIR. + * of MLK_BINDIR. * * Example: * from: /usr/local/bin