summaryrefslogtreecommitdiff
path: root/include/my_dbug.h
diff options
context:
space:
mode:
authorunknown <lenz@mysql.com>2004-06-15 14:37:45 +0200
committerunknown <lenz@mysql.com>2004-06-15 14:37:45 +0200
commitee7bc435e318f0c33df31e1a5af95f640e75f7f7 (patch)
tree9b0f1cae49e317e9d2954501491fe4666fadcf07 /include/my_dbug.h
parentfa4b3f0fcc35e77d4de2bdcb99d13e2b7cc69296 (diff)
downloadmariadb-git-ee7bc435e318f0c33df31e1a5af95f640e75f7f7.tar.gz
- make sure to define NDEBUG in my_dbug.h, when DBUG_OFF is defined
(to disable assertions) include/my_dbug.h: - make sure to define NDEBUG, when DBUG_OFF is defined (to disable assertions)
Diffstat (limited to 'include/my_dbug.h')
-rw-r--r--include/my_dbug.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/my_dbug.h b/include/my_dbug.h
index d02ea5bf050..bc90b91f1c7 100644
--- a/include/my_dbug.h
+++ b/include/my_dbug.h
@@ -16,6 +16,9 @@
#ifndef _dbug_h
#define _dbug_h
+#ifdef DBUG_OFF
+#define NDEBUG /* for assert.h */
+#endif
#include <assert.h>
#ifdef __cplusplus
extern "C" {