- fixed compilation with GCC and Clang

There were lots of errors ‘...’ was declared ‘extern’ and later ‘static’ [-fpermissive]
This commit is contained in:
alexey.lysiuk 2020-01-29 10:20:17 +02:00
parent 305e6fa617
commit 93fb98413e
3 changed files with 1 additions and 16 deletions

View file

@ -1092,7 +1092,6 @@ void renderSetRollAngle(int32_t rolla);
void tileInvalidate(int16_t tilenume, int32_t pal, int32_t how);
void polymost_glreset(void);
void polymost_precache(int32_t dapicnum, int32_t dapalnum, int32_t datype);
void PrecacheHardwareTextures(int nTile);
void Polymost_Startup();
@ -1125,7 +1124,6 @@ EXTERN_CVAR(Bool, hw_useindexedcolortextures)
EXTERN_CVAR(Bool, hw_parallaxskypanning)
EXTERN_CVAR(Bool, r_voxels)
extern int32_t r_parallaxskyclamping;
extern int32_t r_downsize;
extern int32_t mdtims, omdtims;
extern int32_t glrendmode;

View file

@ -199,7 +199,6 @@ struct voxmodel_t : public mdmodel_t
EXTERN mdmodel_t **models;
void updateanimation(md2model_t *m, tspriteptr_t tspr, uint8_t lpal);
FTexture* mdloadskin(idmodel_t* m, int32_t number, int32_t pal, int32_t surf, bool* exact);
void mdinit(void);
void freeallmodels(void);

View file

@ -14,12 +14,10 @@ typedef struct { float r, g, b, a; } coltypef;
extern bool playing_rr;
extern int32_t rendmode;
extern float gtang;
extern float glox1, gloy1;
extern float glox1;
extern double gxyaspect;
extern float grhalfxdown10x;
extern float gcosang, gsinang, gcosang2, gsinang2;
extern float gchang, gshang, gctang, gstang;
extern float gvrcorrection;
extern void Polymost_prepare_loadboard(void);
@ -40,9 +38,6 @@ void polymost_completeMirror();
int32_t polymost_maskWallHasTranslucency(uwalltype const * const wall);
int32_t polymost_spriteHasTranslucency(tspritetype const * const tspr);
float* multiplyMatrix4f(float m0[4*4], const float m1[4*4]);
void polymost_glinit(void);
void polymost_glreset(void);
enum {
@ -117,14 +112,7 @@ enum {
#define DAMETH_NARROW_MASKPROPS(dameth) (((dameth)&(~DAMETH_TRANS1))|(((dameth)&DAMETH_TRANS1)>>1))
EDUKE32_STATIC_ASSERT(DAMETH_NARROW_MASKPROPS(DAMETH_MASKPROPS) == DAMETH_MASK);
extern int32_t globalnoeffect;
extern int32_t drawingskybox;
extern int32_t hicprecaching;
extern float fcosglobalang, fsinglobalang;
extern float fxdim, fydim, fydimen, fviewingrange;
extern char ptempbuf[MAXWALLSB<<1];
extern hitdata_t polymost_hitdata;
#endif