diff options
author | iggy@amd64.(none) <> | 2008-04-28 14:58:32 -0400 |
---|---|---|
committer | iggy@amd64.(none) <> | 2008-04-28 14:58:32 -0400 |
commit | 27663116b4941b3ef6d4db43dd731b23c9c1ad93 (patch) | |
tree | 6a206281413f8d4feaeca1a444327e3007d17b8c /include | |
parent | 997af9c136ad94fd343fbe6f47c53b71a1c25c62 (diff) | |
download | mariadb-git-27663116b4941b3ef6d4db43dd731b23c9c1ad93.tar.gz |
Correct failing build.
Diffstat (limited to 'include')
-rw-r--r-- | include/my_global.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/my_global.h b/include/my_global.h index b0a26e67d9b..e474b620d27 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -533,8 +533,12 @@ C_MODE_END #undef DBUG_OFF #endif -#if defined(_lint) && !defined(DBUG_OFF) -#define DBUG_OFF +/* We might be forced to turn debug off, if not turned off already */ +#if (defined(FORCE_DBUG_OFF) || defined(_lint)) && !defined(DBUG_OFF) +# define DBUG_OFF +# ifdef DBUG_ON +# undef DBUG_ON +# endif #endif #include <my_dbug.h> |