diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2017-04-18 21:55:30 +0200 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-04-18 21:27:27 +0000 |
commit | 73e2354e4c4dfcffe413562e0f9f0169c8f6b50e (patch) | |
tree | 3b802b7e7029743148915f460244902fd82d39b4 /plugins | |
parent | cf40e733e968c4ecb05b88bfb6b07442279a2d59 (diff) |
mate: avoid redefining NDEBUG
When building RelWithDebInfo target with MSVC, NDEBUG is automatically defined.
Avoid redefining the macro by checking if it already exists.
Change-Id: I1720f47cce0df210c2b2dff3b20c218dc2ae7b02
Reviewed-on: https://code.wireshark.org/review/21200
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mate/mate_grammar.lemon | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mate/mate_grammar.lemon b/plugins/mate/mate_grammar.lemon index f40243789f..302f0582a5 100644 --- a/plugins/mate/mate_grammar.lemon +++ b/plugins/mate/mate_grammar.lemon @@ -28,7 +28,9 @@ * XXX - there's a Lemon bug where this grammar produces a parser that * fails assertions; to work around it, we disable assert() failures. */ +#ifndef NDEBUG #define NDEBUG +#endif #include "mate.h" #include "mate_grammar.h" |