mirror of
				https://github.com/eledio-devices/thirdparty-miniz.git
				synced 2025-10-31 00:32:38 +01:00 
			
		
		
		
	Use _ftelli64, _fseeki64 and stat with MinGW32 and OpenWatcom
This commit is contained in:
		
							
								
								
									
										10
									
								
								miniz_zip.c
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								miniz_zip.c
									
									
									
									
									
								
							| @@ -67,7 +67,7 @@ static FILE *mz_freopen(const char *pPath, const char *pMode, FILE *pStream) | ||||
| #define MZ_FFLUSH fflush | ||||
| #define MZ_FREOPEN mz_freopen | ||||
| #define MZ_DELETE_FILE remove | ||||
| #elif defined(__MINGW32__) | ||||
| #elif defined(__MINGW32__) || defined(__WATCOMC__) | ||||
| #ifndef MINIZ_NO_TIME | ||||
| #include <sys/utime.h> | ||||
| #endif | ||||
| @@ -75,10 +75,10 @@ static FILE *mz_freopen(const char *pPath, const char *pMode, FILE *pStream) | ||||
| #define MZ_FCLOSE fclose | ||||
| #define MZ_FREAD fread | ||||
| #define MZ_FWRITE fwrite | ||||
| #define MZ_FTELL64 ftello64 | ||||
| #define MZ_FSEEK64 fseeko64 | ||||
| #define MZ_FILE_STAT_STRUCT _stat | ||||
| #define MZ_FILE_STAT _stat | ||||
| #define MZ_FTELL64 _ftelli64 | ||||
| #define MZ_FSEEK64 _fseeki64 | ||||
| #define MZ_FILE_STAT_STRUCT stat | ||||
| #define MZ_FILE_STAT stat | ||||
| #define MZ_FFLUSH fflush | ||||
| #define MZ_FREOPEN(f, m, s) freopen(f, m, s) | ||||
| #define MZ_DELETE_FILE remove | ||||
|   | ||||
		Reference in New Issue
	
	Block a user