diff libmlk-core/core/zfile.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 b271a0e8ce52
children d01e83210ca2
line wrap: on
line diff
--- a/libmlk-core/core/zfile.c	Thu Sep 09 15:30:07 2021 +0200
+++ b/libmlk-core/core/zfile.c	Wed Sep 22 07:19:32 2021 +0200
@@ -31,7 +31,7 @@
  * If not enabled, we still need to check if a file is in zstandard so we use
  * the magic number defined in the zstd.h file or copy it if zstd is disabled.
  */
-#if defined(MOLKO_WITH_ZSTD)
+#if defined(MLK_WITH_ZSTD)
 #       include <zstd.h>
 #else
 #       define ZSTD_MAGICNUMBER 0xFD2FB528
@@ -63,7 +63,7 @@
 static int
 decompress(int fd, struct zfile *zf)
 {
-#if defined(MOLKO_WITH_ZSTD)
+#if defined(MLK_WITH_ZSTD)
 	char *in = NULL;
 	unsigned long long datasz;
 	struct stat st;