Root/cgminer/patches/0001-add-roundl-define.patch

1diff --git a/miner.h b/miner.h
2index 120d763..7b7d6d5 100644
3--- a/miner.h
4+++ b/miner.h
5@@ -159,6 +159,10 @@ void *alloca (size_t);
6 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
7 #endif
8 
9+#ifndef roundl
10+#define roundl(x) (long double)((long long)((x==0)?0.0:((x)+((x)>0)?0.5:-0.5)))
11+#endif
12+
13 enum alive {
14     LIFE_WELL,
15     LIFE_SICK,
16

Archive Download this file



interactive