summaryrefslogtreecommitdiffstats
path: root/libraries/pack200/src/unpack.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2018-11-01 22:08:15 +0100
committerPetr Mrázek <peterix@gmail.com>2018-11-01 22:08:15 +0100
commit9eb165bfee39578e6ce82dff05e08c701d0a9c0a (patch)
treead1193f73319a25b0b275a772ca8eb35542875ff /libraries/pack200/src/unpack.h
parente4ce74e622b0c4deb40dce71c88a8cc1bc064c54 (diff)
downloadMultiMC-9eb165bfee39578e6ce82dff05e08c701d0a9c0a.tar
MultiMC-9eb165bfee39578e6ce82dff05e08c701d0a9c0a.tar.gz
MultiMC-9eb165bfee39578e6ce82dff05e08c701d0a9c0a.tar.lz
MultiMC-9eb165bfee39578e6ce82dff05e08c701d0a9c0a.tar.xz
MultiMC-9eb165bfee39578e6ce82dff05e08c701d0a9c0a.zip
iNOISSUE fix build issue with pack200 on rhel 7.6
Diffstat (limited to 'libraries/pack200/src/unpack.h')
-rw-r--r--libraries/pack200/src/unpack.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libraries/pack200/src/unpack.h b/libraries/pack200/src/unpack.h
index 8363740d..cc5dd60a 100644
--- a/libraries/pack200/src/unpack.h
+++ b/libraries/pack200/src/unpack.h
@@ -23,6 +23,8 @@
* questions.
*/
+#pragma once
+
// Global Structures
struct jar;
struct gunzip;
@@ -33,6 +35,8 @@ struct cpindex;
struct inner_class;
struct value_stream;
+typedef int64_t (*read_input_fn_t)(unpacker *self, void *buf, int64_t minlen, int64_t maxlen);
+
struct cpindex
{
uint32_t len;
@@ -186,8 +190,6 @@ struct unpacker
int unsized_bytes_read;
// callback to read at least one byte, up to available input
- typedef int64_t (*read_input_fn_t)(unpacker *self, void *buf, int64_t minlen,
- int64_t maxlen);
read_input_fn_t read_input_fn;
// archive header fields