summary refs log tree commit diff stats
path: root/lib/wrappers/zip/zlib.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2015-02-01 01:29:48 +0100
committerAndreas Rumpf <rumpf_a@web.de>2015-02-01 01:29:48 +0100
commit09ef48e1cfc4dbe946572cfe7d21190fdf3c5c3c (patch)
tree8cfc73464077dc22c103df98812bb9d78ea3df7e /lib/wrappers/zip/zlib.nim
parentc7543652e67aea77dcda3a67c48efb9f76488140 (diff)
parentab29db58d3ebc4797e57fdc0807f38c767db2baa (diff)
downloadNim-09ef48e1cfc4dbe946572cfe7d21190fdf3c5c3c.tar.gz
Merge pull request #2040 from elpres/patch-1
Same types for chars as in zlib.h
Diffstat (limited to 'lib/wrappers/zip/zlib.nim')
-rw-r--r--lib/wrappers/zip/zlib.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/wrappers/zip/zlib.nim b/lib/wrappers/zip/zlib.nim
index e3530d566..6f51e9a8d 100644
--- a/lib/wrappers/zip/zlib.nim
+++ b/lib/wrappers/zip/zlib.nim
@@ -119,9 +119,10 @@ proc gzputs*(thefile: GzFile, s: Pbytef): int32{.cdecl, dynlib: libz,
     importc: "gzputs".}
 proc gzgets*(thefile: GzFile, buf: Pbytef, length: int32): Pbytef{.cdecl, 
     dynlib: libz, importc: "gzgets".}
-proc gzputc*(thefile: GzFile, c: char): char{.cdecl, dynlib: libz, 
+proc gzputc*(thefile: GzFile, c: int32): int32{.cdecl, dynlib: libz, 
     importc: "gzputc".}
-proc gzgetc*(thefile: GzFile): char{.cdecl, dynlib: libz, importc: "gzgetc".}
+proc gzgetc*(thefile: GzFile): int32{.cdecl, dynlib: libz, importc: "gzgetc".}
+proc gzungetc*(c: int32, thefile: GzFile): int32{.cdecl, dynlib: libz, importc: "gzungetc".}
 proc gzflush*(thefile: GzFile, flush: int32): int32{.cdecl, dynlib: libz, 
     importc: "gzflush".}
 proc gzseek*(thefile: GzFile, offset: ZOffT, whence: int32): ZOffT{.cdecl,