Silence a compilation warning on MSVC 2017 and clang-cl

test.c no longer uses lround(), so we don't need to declare it,
and we can use math.h for fabs().

Fixes bug 27185; bugfix on 0.2.2.2-alpha.
This commit is contained in:
teor 2018-08-23 18:55:39 +10:00
parent 9068e2fa28
commit cc4ea34a26
No known key found for this signature in database
GPG Key ID: 10FEAA0E7075672A
2 changed files with 5 additions and 8 deletions

3
changes/bug27185 Normal file
View File

@ -0,0 +1,3 @@
o Minor bugfixes (Windows, compilation):
- Silence a compilation warning on MSVC 2017 and clang-cl.
Fixes bug 27185; bugfix on 0.2.2.2-alpha.

View File

@ -22,6 +22,8 @@
#include <dirent.h> #include <dirent.h>
#endif #endif
#include <math.h>
/* These macros pull in declarations for some functions and structures that /* These macros pull in declarations for some functions and structures that
* are typically file-private. */ * are typically file-private. */
#define GEOIP_PRIVATE #define GEOIP_PRIVATE
@ -31,14 +33,6 @@
#define MAIN_PRIVATE #define MAIN_PRIVATE
#define STATEFILE_PRIVATE #define STATEFILE_PRIVATE
/*
* Linux doesn't provide lround in math.h by default, but mac os does...
* It's best just to leave math.h out of the picture entirely.
*/
//#include <math.h>
long int lround(double x);
double fabs(double x);
#include "or.h" #include "or.h"
#include "backtrace.h" #include "backtrace.h"
#include "buffers.h" #include "buffers.h"