Browse Source

Bugfix: #define max(a,b) macro

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

+ 4 - 0
miner.h

@@ -138,6 +138,10 @@ void *alloca (size_t);
 #endif
 #endif
 
+#ifndef max
+#  define max(a, b)  ((a) > (b) ? (a) : (b))
+#endif
+
 #undef unlikely
 #undef likely
 #if defined(__GNUC__) && (__GNUC__ > 2) && defined(__OPTIMIZE__)