Compiler warning fix [byuu]
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user