Fix building on MinGW (MinGW-w64 was OK). DONT_BUILD.

git-svn-id: https://svn.eduke32.com/eduke32@4310 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2014-02-08 21:25:29 +00:00
parent eec27960ea
commit 83d23092cd
1 changed files with 9 additions and 8 deletions

View File

@ -149,6 +149,13 @@ typedef struct
} kzfilestate;
static kzfilestate kzfs;
// GCC 4.6 LTO build fix
#ifdef USING_LTO
# define B_KPLIB_STATIC
#else
# define B_KPLIB_STATIC static
#endif
//Initialized tables (can't be in union)
//jpg: png:
// crmul 16384 abstab10 4096
@ -161,7 +168,8 @@ static kzfilestate kzfs;
// pow2mask 128*
// dcflagor 64
static int32_t palcol[256] ASMNAME("palcol"), paleng, bakcol, numhufblocks, zlibcompflags;
B_KPLIB_STATIC int32_t ATTRIBUTE((used)) palcol[256] ASMNAME("palcol");
static int32_t paleng, bakcol, numhufblocks, zlibcompflags;
static int8_t coltype, filtype, bitdepth;
//============================ KPNGILIB begins ===============================
@ -174,13 +182,6 @@ static int8_t coltype, filtype, bitdepth;
// * 16-bit color depth
// * Some useless ancillary chunks, like: gAMA(gamma) & pHYs(aspect ratio)
// GCC 4.6 LTO build fix
#ifdef USING_LTO
# define B_KPLIB_STATIC
#else
# define B_KPLIB_STATIC static
#endif
//.PNG specific variables:
static int32_t bakr = 0x80, bakg = 0x80, bakb = 0x80; //this used to be public...
static int32_t gslidew = 0, gslider = 0, xm, xmn[4], xr0, xr1, xplc, yplc;