fix mingw64 compilation warnings
This commit is contained in:
parent
7f08131f99
commit
c1864f69e8
3
.gitignore
vendored
3
.gitignore
vendored
@ -21,3 +21,6 @@ lz4
|
|||||||
# Visual solution files
|
# Visual solution files
|
||||||
*.suo
|
*.suo
|
||||||
*.user
|
*.user
|
||||||
|
|
||||||
|
# Directories
|
||||||
|
_codelite/
|
||||||
|
@ -39,6 +39,10 @@
|
|||||||
# define _LARGEFILE64_SOURCE
|
# define _LARGEFILE64_SOURCE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__MINGW32__) && !defined(_POSIX_SOURCE)
|
||||||
|
# define _POSIX_SOURCE 1 /* disable %llu warnings with MinGW on Windows */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/*-************************************
|
/*-************************************
|
||||||
* Includes
|
* Includes
|
||||||
|
@ -88,7 +88,7 @@
|
|||||||
******************************/
|
******************************/
|
||||||
#define COMPRESSOR_NAME "LZ4 command line interface"
|
#define COMPRESSOR_NAME "LZ4 command line interface"
|
||||||
#ifndef LZ4_VERSION
|
#ifndef LZ4_VERSION
|
||||||
# define LZ4_VERSION "r128"
|
# define LZ4_VERSION "r132"
|
||||||
#endif
|
#endif
|
||||||
#define AUTHOR "Yann Collet"
|
#define AUTHOR "Yann Collet"
|
||||||
#define WELCOME_MESSAGE "*** %s %i-bits %s, by %s (%s) ***\n", COMPRESSOR_NAME, (int)(sizeof(void*)*8), LZ4_VERSION, AUTHOR, __DATE__
|
#define WELCOME_MESSAGE "*** %s %i-bits %s, by %s (%s) ***\n", COMPRESSOR_NAME, (int)(sizeof(void*)*8), LZ4_VERSION, AUTHOR, __DATE__
|
||||||
|
@ -42,6 +42,9 @@
|
|||||||
#define _LARGE_FILES /* Large file support on 32-bits AIX */
|
#define _LARGE_FILES /* Large file support on 32-bits AIX */
|
||||||
#define _FILE_OFFSET_BITS 64 /* Large file support on 32-bits unix */
|
#define _FILE_OFFSET_BITS 64 /* Large file support on 32-bits unix */
|
||||||
|
|
||||||
|
#if defined(__MINGW32__) && !defined(_POSIX_SOURCE)
|
||||||
|
# define _POSIX_SOURCE 1 /* disable %llu warnings with MinGW on Windows */
|
||||||
|
#endif
|
||||||
|
|
||||||
/*****************************
|
/*****************************
|
||||||
* Includes
|
* Includes
|
||||||
|
Loading…
Reference in New Issue
Block a user