OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 1 | diff --git a/miner.h b/miner.h |
| 2 | index 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 |
