forked from hyattpd/Prodigal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniel Baker
committed
Jul 20, 2019
1 parent
fe80417
commit 6e54227
Showing
6 changed files
with
71 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#ifndef SGC_H__ | ||
#define SGC_H__ | ||
#ifdef SUPPORT_GZIP_COMPRESSED | ||
#include "zlib.h" | ||
#define fptr gzFile | ||
#define INPUT_OPEN gzopen | ||
#define INPUT_SEEK gzseek | ||
#define INPUT_CLOSE gzclose | ||
#define INPUT_GETS(str, n, stream) gzgets(stream, str, n) | ||
#else | ||
#define fptr FILE * | ||
#define INPUT_OPEN fopen | ||
#define INPUT_SEEK fseek | ||
#define INPUT_CLOSE fclose | ||
#define INPUT_GETS(str, n, stream) fgets(str, n, stream) | ||
#endif | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters