Compiler warning fix [byuu]

This commit is contained in:
pagefault
2001-08-15 06:48:30 +00:00
parent cd1aaef33e
commit 5805b57b91

View File

@@ -71,18 +71,17 @@ void Start_Log (void)
LogFile = fopen(LogFileName,"wb"); LogFile = fopen(LogFileName,"wb");
} }
void Stop_Log (void) void Stop_Log(void)
{ {
if (LogFile) if(LogFile)
{ {
fclose(LogFile); fclose(LogFile);
LogFile = NULL; LogFile=NULL;
} }
} }
#endif #endif
/***************************************************************************\ /***************************************************************************\
* Math tables * * Math tables *
\***************************************************************************/ \***************************************************************************/
@@ -93,6 +92,10 @@ double *SinTable2;
#define Angle(x) (((x)/(65536/INCR)) & (INCR-1)) #define Angle(x) (((x)/(65536/INCR)) & (INCR-1))
#define Cos(x) ((double) CosTable2[x]) #define Cos(x) ((double) CosTable2[x])
#define Sin(x) ((double) SinTable2[x]) #define Sin(x) ((double) SinTable2[x])
// gcc warning fix
#ifdef PI
#undef PI
#endif
#define PI 3.14159265358979323846264338327 #define PI 3.14159265358979323846264338327
double Atan(double x) double Atan(double x)