Compare commits

...

2 commits

Author SHA1 Message Date
500a2c4c59 Fix broken ifdef, not sure why it was breaking it
Probably some historical reasons. When like this, it works with current GCC
2023-11-23 00:38:42 +01:00
867c93c1b3 Remove static from function definition according to SO answer
Patch from https://stackoverflow.com/questions/16378555/error-while-compiling-svga-source
2023-11-23 00:35:14 +01:00
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@ typedef struct {
#define max(x,y) (((x) > (y)) ? (x) : (y)) #define max(x,y) (((x) > (y)) ? (x) : (y))
#define min(x,y) (((x) < (y)) ? (x) : (y)) #define min(x,y) (((x) < (y)) ? (x) : (y))
#ifndef __GNUC__ #ifdef __GNUC__
double fsqr (double x); double fsqr (double x);
int lsqr (int x); int lsqr (int x);

View file

@ -64,7 +64,7 @@ static GTF_constants GC = {
/*-------------------------- Implementation -------------------------------*/ /*-------------------------- Implementation -------------------------------*/
static double round(double v) double round(double v)
{ {
return floor(v + 0.5); return floor(v + 0.5);
} }