From ee7bc435e318f0c33df31e1a5af95f640e75f7f7 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 15 Jun 2004 14:37:45 +0200 Subject: [PATCH] - 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) --- include/my_dbug.h | 3 +++ 1 file changed, 3 insertions(+) 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 #ifdef __cplusplus extern "C" {