Skip to content

Commit

Permalink
Remove assert warning in leveldb wonderland
Browse files Browse the repository at this point in the history
  • Loading branch information
kahrl committed Sep 10, 2013
1 parent 168fa2f commit c6e3797
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/debug.h
Expand Up @@ -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
*/
Expand Down

0 comments on commit c6e3797

Please sign in to comment.