]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
typedef ZWRAP_CCtx internal_state
authorPrzemyslaw Skibinski <inikep@gmail.com>
Fri, 4 Nov 2016 15:05:28 +0000 (16:05 +0100)
committerPrzemyslaw Skibinski <inikep@gmail.com>
Fri, 4 Nov 2016 15:05:28 +0000 (16:05 +0100)
zlibWrapper/zstd_zlibwrapper.c

index c653d7493db7a9d708e9204dfd874c137fd3d670..4098abd80757720da3a9981bbb45806ae0585b49 100644 (file)
@@ -10,7 +10,8 @@
 
 #include <stdio.h>                 /* vsprintf */
 #include <stdarg.h>                /* va_list, for z_gzprintf */
-#include <zlib.h>
+#define NO_DUMMY_DECL
+#include <zlib.h>                  /* without #define Z_PREFIX */
 #include "zstd_zlibwrapper.h"
 #define ZSTD_STATIC_LINKING_ONLY   /* ZSTD_MAGICNUMBER */
 #include "zstd.h"
@@ -85,7 +86,10 @@ typedef struct {
     ZSTD_outBuffer outBuffer;
     ZWRAP_state_t comprState;
     unsigned long long pledgedSrcSize;
-} ZWRAP_CCtx __attribute__ ((aligned (4)));
+} ZWRAP_CCtx;
+
+typedef ZWRAP_CCtx internal_state;
+
 
 
 size_t ZWRAP_freeCCtx(ZWRAP_CCtx* zwc)
@@ -404,7 +408,7 @@ typedef struct {
     int windowBits;
     ZSTD_customMem customMem;
     z_stream allocFunc; /* copy of zalloc, zfree, opaque */
-} ZWRAP_DCtx __attribute__ ((aligned (4)));
+} ZWRAP_DCtx;
 
 
 int ZWRAP_isUsingZSTDdecompression(z_streamp strm)