summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlenz@mysql.com <>2004-06-15 14:37:45 +0200
committerlenz@mysql.com <>2004-06-15 14:37:45 +0200
commit14ace68c98b17364618f4f4b96add15cbc110d10 (patch)
tree9b0f1cae49e317e9d2954501491fe4666fadcf07
parent9d788778a0d9ae5b4ae01d9420202567588c2873 (diff)
downloadmariadb-git-14ace68c98b17364618f4f4b96add15cbc110d10.tar.gz
- make sure to define NDEBUG in my_dbug.h, when DBUG_OFF is defined
(to disable assertions)
-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" {