projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
168fa2f
)
Remove assert warning in leveldb wonderland
author
Kahrl
<kahrl@gmx.net>
Tue, 10 Sep 2013 16:28:26 +0000
(18:28 +0200)
committer
Kahrl
<kahrl@gmx.net>
Tue, 10 Sep 2013 16:28:26 +0000
(18:28 +0200)
src/debug.h
patch
|
blob
|
history
diff --git
a/src/debug.h
b/src/debug.h
index 1532be824a2918a048e5dc592078fb2dead14c5d..ba2e8704ebd1cc7c892dcec67618c6009f75035a 100644
(file)
--- 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 <assert.h>
+#undef assert
+
/*
Assert
*/