1024jp / GzipSwift

Swift package that enables gzip/gunzip Data using zlib
MIT License
544 stars 134 forks source link

Tests pass using swift package manager on Linux and Mac, using Swift 4.0.2 #23

Closed danramteke closed 7 years ago

1024jp commented 7 years ago

This is great! Thank you @danramteke.

danramteke commented 7 years ago

Great! Glad you like it!

Perhaps at the top of Data+Gzip.swift the imports should be

#if os(Linux)
  import zlibLinux
#else
  import zlib
#endif

instead of

#if os(OSX)
import zlib
#elseif os(Linux)
import zlibLinux
#endif

in order to support os's that are not OSX or Linux.