Browse Source

Revert "Remove needless roundl define.", since it is needed for Cygwin and OpenWRT

This reverts commit 336dbd5c985bc30e60d6694df0254084e613b3dc.

Conflicts:

	miner.h
Luke Dashjr 13 years ago
parent
commit
3572f64c47
1 changed files with 4 additions and 0 deletions
  1. 4 0
      miner.h

+ 4 - 0
miner.h

@@ -195,6 +195,10 @@ void *alloca (size_t);
 #	endif
 #endif
 
+#ifndef roundl
+#define roundl(x)   (long double)((long long)((x==0)?0.0:((x)+((x)>0)?0.5:-0.5)))
+#endif
+
 enum alive {
 	LIFE_WELL,
 	LIFE_SICK,