summaryrefslogtreecommitdiff
path: root/src/trg-torrent-graph.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-04-10 23:24:47 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-04-10 23:24:47 +0000
commit2a0a71abaae9cc9f7159ccafae0fe9ed31022fe9 (patch)
tree5ceb6a12daa0d11c25f47b4dfb3dbad1c3608b54 /src/trg-torrent-graph.c
parent1fd37804db60714c4fd8106bdcac0f1c64fc1853 (diff)
ugh, C99 undefines M_LN2 in math.h (for log2). define it ourselves.
Diffstat (limited to 'src/trg-torrent-graph.c')
-rw-r--r--src/trg-torrent-graph.c2
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