This commit is contained in:
Shengliang Guan 2021-01-18 09:41:35 +08:00
parent 7a78290715
commit f6e18e01d1
2 changed files with 8 additions and 0 deletions

View File

@ -5,6 +5,10 @@
#include <stdint.h> #include <stdint.h>
#include "gzguts.h" #include "gzguts.h"
#ifndef O_BINARY
#define O_BINARY 0
#endif
#if defined(_WIN32) && !defined(__BORLANDC__) && !defined(__MINGW32__) #if defined(_WIN32) && !defined(__BORLANDC__) && !defined(__MINGW32__)
# define LSEEK _lseeki64 # define LSEEK _lseeki64
#else #else

View File

@ -20,6 +20,10 @@
extern "C" { extern "C" {
#endif #endif
#ifndef O_BINARY
#define O_BINARY 0
#endif
#ifndef STDERR_FILENO #ifndef STDERR_FILENO
#define STDERR_FILENO (2) #define STDERR_FILENO (2)
#endif #endif