From: Kahrl Date: Tue, 10 Sep 2013 16:28:26 +0000 (+0200) Subject: Remove assert warning in leveldb wonderland X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=c6e3797c1a2ed45ab72704ce434d15e65930f595;p=zefram%2Fminetest%2Fminetest_engine.git Remove assert warning in leveldb wonderland --- diff --git a/src/debug.h b/src/debug.h index 1532be82..ba2e8704 100644 --- a/src/debug.h +++ b/src/debug.h @@ -72,6 +72,14 @@ extern std::ostream dstream; extern std::ostream dstream_no_stderr; extern Nullstream dummyout; +/* + Include assert.h and immediately undef assert so that it can't override + our assert later on. leveldb/slice.h is a notable offender. +*/ + +#include +#undef assert + /* Assert */