Prusa MINI Firmware overview
|
Go to the documentation of this file.
6 #ifdef _LARGEFILE64_SOURCE
7 # ifndef _LARGEFILE_SOURCE
8 # define _LARGEFILE_SOURCE 1
10 # ifdef _FILE_OFFSET_BITS
11 # undef _FILE_OFFSET_BITS
16 # define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
18 # define ZLIB_INTERNAL
31 # define _POSIX_SOURCE
39 #if defined(__TURBOC__) || defined(_MSC_VER) || defined(_WIN32)
43 #if defined(_WIN32) || defined(__CYGWIN__)
55 # define NO_GZCOMPRESS
58 #if defined(STDC99) || (defined(__TURBOC__) && __TURBOC__ >= 0x550)
59 # ifndef HAVE_VSNPRINTF
60 # define HAVE_VSNPRINTF
64 #if defined(__CYGWIN__)
65 # ifndef HAVE_VSNPRINTF
66 # define HAVE_VSNPRINTF
70 #if defined(MSDOS) && defined(__BORLANDC__) && (BORLANDC > 0x410)
71 # ifndef HAVE_VSNPRINTF
72 # define HAVE_VSNPRINTF
76 #ifndef HAVE_VSNPRINTF
87 # if !defined(vsnprintf) && !defined(NO_vsnprintf)
88 # if !defined(_MSC_VER) || ( defined(_MSC_VER) && _MSC_VER < 1500 )
89 # define vsnprintf _vsnprintf
100 # define NO_vsnprintf
103 # define NO_vsnprintf
110 #if defined(_MSC_VER) && _MSC_VER < 1900
111 # define snprintf _snprintf
115 # define local static
129 # include <windows.h>
130 # define zstrerror() gz_strwinerror((DWORD)GetLastError())
134 # define zstrerror() strerror(errno)
136 # define zstrerror() "stdio error (consult errno)"
141 #if !defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0
149 #if MAX_MEM_LEVEL >= 8
150 # define DEF_MEM_LEVEL 8
152 # define DEF_MEM_LEVEL MAX_MEM_LEVEL
157 #define GZBUFSIZE 8192
162 #define GZ_WRITE 31153
215 # define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > INT_MAX)
218 # define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > gz_intmax())
#define ZEXTERN
Definition: zconf.h:377
gzFile ZEXPORT gzopen64(char *path, const char *mode) const
Definition: gzlib.c:278
bool error
Definition: auto_build.py:637
z_off64_t skip
Definition: gzguts.h:195
int fd
Definition: gzguts.h:179
#define GZ_READ
Definition: gzguts.h:161
z_off64_t ZEXPORT gzoffset64(gzFile file)
Definition: gzlib.c:482
int eof
Definition: gzguts.h:189
#define Z_STREAM_ERROR
Definition: zlib.h:181
char * path
Definition: gzguts.h:180
static volatile fsensor_t state
Definition: filament_sensor.c:23
unsigned char * in
Definition: gzguts.h:183
int err
Definition: gzguts.h:198
#define NULL
Definition: usbd_def.h:53
int ZEXPORT gzclose(gzFile file)
Definition: gzclose.c:11
Byte FAR * voidpf
Definition: zconf.h:413
int ZEXPORT gzclose_w(gzFile file)
Definition: gzwrite.c:627
z_stream strm
Definition: gzguts.h:201
unsigned want
Definition: gzguts.h:182
Byte * voidp
Definition: zconf.h:414
#define z_off64_t
Definition: zconf.h:513
int mode
Definition: gzguts.h:178
voidp malloc OF((uInt size))
#define FAR
Definition: zconf.h:387
int past
Definition: gzguts.h:190
int how
Definition: gzguts.h:187
void ZLIB_INTERNAL gz_error(gz_statep state, int err, const char *msg)
Definition: gzlib.c:579
z_off64_t ZEXPORT gzseek64(gzFile file, z_off64_t offset, int whence)
Definition: gzlib.c:366
unsigned long DWORD
Definition: onboard_sd.h:15
int level
Definition: gzguts.h:192
#define ZLIB_INTERNAL
Definition: gzguts.h:18
int seek
Definition: gzguts.h:196
unsigned size
Definition: gzguts.h:181
char * msg
Definition: gzguts.h:199
#define ZEXPORT
Definition: zconf.h:380
unsigned ZLIB_INTERNAL gz_intmax()
Definition: gzlib.c:625
unsigned int uInt
Definition: zconf.h:393
int direct
Definition: gzguts.h:185
gz_state FAR * gz_statep
Definition: gzguts.h:203
int ZEXPORT gzclose_r(gzFile file)
Definition: gzread.c:627
z_off64_t start
Definition: gzguts.h:188
int strategy
Definition: gzguts.h:193
unsigned char * out
Definition: gzguts.h:184
z_off64_t ZEXPORT gztell64(gzFile file)
Definition: gzlib.c:455
static png_bytep size_t size
Definition: pngwrite.c:2170