diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-08-23 19:36:45 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-08-23 19:36:45 -0400 |
commit | f68d4318e74e1ed3807e91b5b512668c932cab43 (patch) | |
tree | d70fceb67f141324e6a4af178459f82c03545c00 | |
parent | 3f55d2efe79524a9f4dd7d7e685aa60056dc2c15 (diff) | |
parent | 36bb11a65081bb0c2a2a86359c6386bde67f8046 (diff) | |
download | tor-f68d4318e74e1ed3807e91b5b512668c932cab43.tar.gz tor-f68d4318e74e1ed3807e91b5b512668c932cab43.zip |
Merge branch 'maint-0.3.2' into release-0.3.2
-rw-r--r-- | changes/bug27185 | 3 | ||||
-rw-r--r-- | src/test/test.c | 10 |
2 files changed, 5 insertions, 8 deletions
diff --git a/changes/bug27185 b/changes/bug27185 new file mode 100644 index 0000000000..79221b3df4 --- /dev/null +++ b/changes/bug27185 @@ -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. diff --git a/src/test/test.c b/src/test/test.c index 383bc00002..a935ac36a6 100644 --- a/src/test/test.c +++ b/src/test/test.c @@ -22,6 +22,8 @@ #include <dirent.h> #endif /* defined(_WIN32) */ +#include <math.h> + /* These macros pull in declarations for some functions and structures that * are typically file-private. */ #define GEOIP_PRIVATE @@ -31,14 +33,6 @@ #define MAIN_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 "backtrace.h" #include "buffers.h" |