OSDN Git Service

2003-01-31 Frank Ch. Eigler <fche@redhat.com>
authorfche <fche>
Fri, 31 Jan 2003 17:10:59 +0000 (17:10 +0000)
committerfche <fche>
Fri, 31 Jan 2003 17:10:59 +0000 (17:10 +0000)
* log2.h: #undef log2, in case a macro collides with the function.

sid/component/cache/ChangeLog
sid/component/cache/log2.h

index 44b7b00..9e96e81 100644 (file)
@@ -1,3 +1,7 @@
+2003-01-31  Frank Ch. Eigler  <fche@redhat.com>
+
+       * log2.h: #undef log2, in case a macro collides with the function.
+
 2002-07-16  Dave Brolley  <brolley@redhat.com>
 
        * cache.h (cache): Add flush_and_invalidate_set_pin and
index 1b485e7..057ddd8 100644 (file)
@@ -25,6 +25,9 @@ bool power_of_two_p (const V& v1)
 
 // Compute log2 (V).
 
+// Zap a possible math.h macro by this name
+#undef log2
+
 template <typename V>
 unsigned log2 (const V& v1)
 {