|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
From 2eeb23af281f056cd0a628a019ee70ccf8c61c25 Mon Sep 17 00:00:00 2001
|
|
|
|
|
From dd5cf5e228a90ecfc66257e04fc6dd053fd9c686 Mon Sep 17 00:00:00 2001
|
|
|
|
|
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
|
|
|
|
Date: Wed, 22 May 2019 12:34:13 +0200
|
|
|
|
|
Subject: [PATCH] Examples to include system miniz.h
|
|
|
|
@ -6,8 +6,8 @@ MIME-Version: 1.0
|
|
|
|
|
Content-Type: text/plain; charset=UTF-8
|
|
|
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
|
|
|
|
|
|
We build miniz as a dynamic library. Adjust examples to use miniz
|
|
|
|
|
header file from system a location.
|
|
|
|
|
We build miniz as a dynamic library. Adjust examples to use a miniz
|
|
|
|
|
header file from a system location.
|
|
|
|
|
|
|
|
|
|
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
|
|
|
|
---
|
|
|
|
@ -33,14 +33,14 @@ index d6e33fa..7cb2556 100644
|
|
|
|
|
typedef unsigned short uint16;
|
|
|
|
|
typedef unsigned int uint;
|
|
|
|
|
diff --git a/examples/example2.c b/examples/example2.c
|
|
|
|
|
index c3a84ba..bc9fba5 100644
|
|
|
|
|
index 03d2409..bc9fba5 100644
|
|
|
|
|
--- a/examples/example2.c
|
|
|
|
|
+++ b/examples/example2.c
|
|
|
|
|
@@ -13,7 +13,7 @@
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
-#include "miniz_zip.h"
|
|
|
|
|
-#include "miniz.h"
|
|
|
|
|
+#include <miniz.h>
|
|
|
|
|
|
|
|
|
|
typedef unsigned char uint8;
|
|
|
|
@ -59,13 +59,13 @@ index a97ba84..7aaac31 100644
|
|
|
|
|
typedef unsigned char uint8;
|
|
|
|
|
typedef unsigned short uint16;
|
|
|
|
|
diff --git a/examples/example4.c b/examples/example4.c
|
|
|
|
|
index eb591d4..2e6d3f6 100644
|
|
|
|
|
index 3f2d7cf..2e6d3f6 100644
|
|
|
|
|
--- a/examples/example4.c
|
|
|
|
|
+++ b/examples/example4.c
|
|
|
|
|
@@ -1,6 +1,6 @@
|
|
|
|
|
// example4.c - Uses tinfl.c to decompress a zlib stream in memory to an output file
|
|
|
|
|
// Public domain, May 15 2011, Rich Geldreich, richgel99@gmail.com. See "unlicense" statement at the end of tinfl.c.
|
|
|
|
|
-#include "miniz_tinfl.h"
|
|
|
|
|
-#include "miniz.h"
|
|
|
|
|
+#include <miniz.h>
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <limits.h>
|
|
|
|
@ -97,5 +97,5 @@ index abbb64f..7878848 100644
|
|
|
|
|
// Now include stdio.h because this test uses fopen(), etc. (but we still don't want miniz.c's stdio stuff, for testing).
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
--
|
|
|
|
|
2.20.1
|
|
|
|
|
2.31.1
|
|
|
|
|
|