mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-04 12:50:57 +00:00
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:
parent
eec27960ea
commit
83d23092cd
1 changed files with 9 additions and 8 deletions
|
@ -149,6 +149,13 @@ typedef struct
|
||||||
} kzfilestate;
|
} kzfilestate;
|
||||||
static kzfilestate kzfs;
|
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)
|
//Initialized tables (can't be in union)
|
||||||
//jpg: png:
|
//jpg: png:
|
||||||
// crmul 16384 abstab10 4096
|
// crmul 16384 abstab10 4096
|
||||||
|
@ -161,7 +168,8 @@ static kzfilestate kzfs;
|
||||||
// pow2mask 128*
|
// pow2mask 128*
|
||||||
// dcflagor 64
|
// 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;
|
static int8_t coltype, filtype, bitdepth;
|
||||||
|
|
||||||
//============================ KPNGILIB begins ===============================
|
//============================ KPNGILIB begins ===============================
|
||||||
|
@ -174,13 +182,6 @@ static int8_t coltype, filtype, bitdepth;
|
||||||
// * 16-bit color depth
|
// * 16-bit color depth
|
||||||
// * Some useless ancillary chunks, like: gAMA(gamma) & pHYs(aspect ratio)
|
// * 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:
|
//.PNG specific variables:
|
||||||
static int32_t bakr = 0x80, bakg = 0x80, bakb = 0x80; //this used to be public...
|
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;
|
static int32_t gslidew = 0, gslider = 0, xm, xmn[4], xr0, xr1, xplc, yplc;
|
||||||
|
|
Loading…
Reference in a new issue