]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
buffer: avoid including ceph assert directly
authorSage Weil <sage@newdream.net>
Thu, 8 Apr 2010 16:16:11 +0000 (09:16 -0700)
committerSage Weil <sage@newdream.net>
Thu, 8 Apr 2010 16:16:11 +0000 (09:16 -0700)
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

index 83faa6c131ee40d7642fd38f80d226c5d87b46f6..63f4d181a202b0848c0809dd4b2a20cb2501e6aa 100644 (file)
@@ -56,7 +56,10 @@ using std::string;
 #include "atomic.h"
 #include "page.h"
 #include "crc32c.h"
-#include "assert.h"
+
+#ifndef assert
+# include <assert.h>
+#endif
 
 
 //#define BUFFER_DEBUG