Minor fixes for recent compilers.

* src/gzip/infutil.h (inflate_mask): Add `const'.

* src/autofit/aflatin2.c: Include `ft2build.h'.
This commit is contained in:
Behdad Esfahbod 2019-11-23 10:00:02 +01:00 committed by Werner Lemberg
parent 3aaae716b2
commit 07c8d8bbdb
3 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2019-11-23 Behdad Esfahbod <behdad@behdad.org>
Minor fixes for recent compilers.
* src/gzip/infutil.h (inflate_mask): Add `const'.
* src/autofit/aflatin2.c: Include `ft2build.h'.
2019-11-07 Nikolaus Waxweiler <madigens@gmail.com>
* CMakeLists.txt: Minor additions to the notes, compile

View File

@ -21,6 +21,7 @@
*/
#include <ft2build.h>
#include FT_ADVANCES_H

View File

@ -86,7 +86,7 @@ struct inflate_blocks_state {
/* masks for lower bits (size given to avoid silly warnings with Visual C++) */
#ifndef NO_INFLATE_MASK
local uInt inflate_mask[17];
local const uInt inflate_mask[17];
#endif
/* copy as much as possible from the sliding window to the output area */