mirror of
				https://github.com/eledio-devices/thirdparty-miniz.git
				synced 2025-10-31 16:14:16 +01:00 
			
		
		
		
	Fix LFS check
Code should check for__USE_LARGEFILE64, not _LARGEFILE64_SOURCE _LARGEFILE64_SOURCE should be used only for setting a preference when compiling code (either explicitly or by the compiler itself). Then, according to its value, features.h will take care define things like __USE_LARGEFILE64 appropriately. As a side-effect, this patch adds support for clang. When building with clang one has to explicitly define _LARGEFILE64_SOURCE if he want to use the *64 api.
This commit is contained in:
		| @@ -97,7 +97,7 @@ static FILE *mz_freopen(const char *pPath, const char *pMode, FILE *pStream) | |||||||
| #define MZ_FFLUSH fflush | #define MZ_FFLUSH fflush | ||||||
| #define MZ_FREOPEN(f, m, s) freopen(f, m, s) | #define MZ_FREOPEN(f, m, s) freopen(f, m, s) | ||||||
| #define MZ_DELETE_FILE remove | #define MZ_DELETE_FILE remove | ||||||
| #elif defined(__GNUC__) && defined(_LARGEFILE64_SOURCE) | #elif defined(__USE_LARGEFILE64) // gcc, clang | ||||||
| #ifndef MINIZ_NO_TIME | #ifndef MINIZ_NO_TIME | ||||||
| #include <utime.h> | #include <utime.h> | ||||||
| #endif | #endif | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user