Commit 14ace68c authored by lenz@mysql.com's avatar lenz@mysql.com

- make sure to define NDEBUG in my_dbug.h, when DBUG_OFF is defined

   (to disable assertions)
parent 9d788778
...@@ -16,6 +16,9 @@ ...@@ -16,6 +16,9 @@
#ifndef _dbug_h #ifndef _dbug_h
#define _dbug_h #define _dbug_h
#ifdef DBUG_OFF
#define NDEBUG /* for assert.h */
#endif
#include <assert.h> #include <assert.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment