From aa55570d32054571ae82279b71d452fe1abbd2a5 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 8 Apr 2010 09:16:11 -0700 Subject: [PATCH] buffer: avoid including ceph assert directly If assert isn't defined, include the standard C one. Internal ceph bits should include assert.h before buffer.h if they want the ceph one. --- src/include/buffer.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/include/buffer.h b/src/include/buffer.h index 83faa6c131ee4..63f4d181a202b 100644 --- a/src/include/buffer.h +++ b/src/include/buffer.h @@ -56,7 +56,10 @@ using std::string; #include "atomic.h" #include "page.h" #include "crc32c.h" -#include "assert.h" + +#ifndef assert +# include +#endif //#define BUFFER_DEBUG -- 2.39.5