Fix warnings and compilation (and possible crashes on 64 bit due to wrong protyping messing up the stack).

git-svn-id: https://svn.eduke32.com/eduke32@1175 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
qbix79 2008-12-03 11:07:01 +00:00
parent 5f7dfc27b7
commit 2e18686daa
3 changed files with 5 additions and 4 deletions

View file

@ -1,5 +1,5 @@
//High-level (easy) picture loading function: //High-level (easy) picture loading function:
extern void kpzload (const char *, int *, intptr_t *, int *, int *); extern void kpzload (const char *, intptr_t *, int *, int *, int *);
//Low-level PNG/JPG functions: //Low-level PNG/JPG functions:
extern void kpgetdim (const char *, int, int *, int *); extern void kpgetdim (const char *, int, int *, int *);
extern int kprender (const char *, int, intptr_t, int, int, int, int, int); extern int kprender (const char *, int, intptr_t, int, int, int, int, int);

View file

@ -19,3 +19,4 @@ void genericmultifunction(int other, char *bufptr, int messleng, int command);
extern int natfree; extern int natfree;
#endif #endif

View file

@ -16,14 +16,14 @@ extern short bunchfirst[MAXWALLSB], bunchlast[MAXWALLSB];
extern short maskwall[MAXWALLSB], maskwallcnt; extern short maskwall[MAXWALLSB], maskwallcnt;
extern spritetype *tspriteptr[MAXSPRITESONSCREEN]; extern spritetype *tspriteptr[MAXSPRITESONSCREEN];
extern int xdimen, xdimenrecip, halfxdimen, xdimenscale, xdimscale, ydimen; extern int xdimen, xdimenrecip, halfxdimen, xdimenscale, xdimscale, ydimen;
extern int frameoffset; extern intptr_t frameoffset;
extern int globalposx, globalposy, globalposz, globalhoriz; extern int globalposx, globalposy, globalposz, globalhoriz;
extern short globalang, globalcursectnum; extern short globalang, globalcursectnum;
extern int globalpal, cosglobalang, singlobalang; extern int globalpal, cosglobalang, singlobalang;
extern int cosviewingrangeglobalang, sinviewingrangeglobalang; extern int cosviewingrangeglobalang, sinviewingrangeglobalang;
extern int globalvisibility; extern int globalvisibility;
extern int xyaspect; extern int xyaspect;
extern int asm1, asm2, asm3, asm4; extern intptr_t asm1, asm2, asm3, asm4;
extern int globalshade; extern int globalshade;
extern short globalpicnum; extern short globalpicnum;
extern int globalx1, globaly2; extern int globalx1, globaly2;