diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-04-10 23:24:47 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-04-10 23:24:47 +0000 |
commit | 2a0a71abaae9cc9f7159ccafae0fe9ed31022fe9 (patch) | |
tree | 5ceb6a12daa0d11c25f47b4dfb3dbad1c3608b54 /src | |
parent | 1fd37804db60714c4fd8106bdcac0f1c64fc1853 (diff) |
ugh, C99 undefines M_LN2 in math.h (for log2). define it ourselves.
Diffstat (limited to 'src')
-rw-r--r-- | src/trg-torrent-graph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trg-torrent-graph.c b/src/trg-torrent-graph.c index c5e4d4b..fd38cae 100644 --- a/src/trg-torrent-graph.c +++ b/src/trg-torrent-graph.c @@ -33,7 +33,7 @@ #include "util.h" /* damn you freebsd */ -#define log2(x) (log(x)/M_LN2) +#define log2(x) (log(x)/0.69314718055994530942) #define GRAPH_NUM_POINTS 62 #define GRAPH_MIN_HEIGHT 40 |