/* PSPP - a program for statistical analysis.
- Copyright (C) 2011 Free Software Foundation, Inc.
+ Copyright (C) 2011, 2013 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include "inflate.h"
-#if HAVE_ZLIB_H
-
#include <xalloc.h>
#include <zlib.h>
#include <stdio.h>
int
inflate_read (struct zip_member *zm, void *buf, size_t n)
{
+ int r;
struct inflator *inf = zm->aux;
if (inf->zss.avail_in == 0)
inf->zss.avail_out = n;
inf->zss.next_out = buf;
- int r = inflate (&inf->zss, Z_NO_FLUSH);
+ r = inflate (&inf->zss, Z_NO_FLUSH);
if ( Z_OK == r)
{
return n - inf->zss.avail_out;
return -1;
}
-
-#endif