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>
This commit is contained in:
Pascal Quantin 2017-04-18 21:55:30 +02:00 committed by Guy Harris
parent cf40e733e9
commit 73e2354e4c
1 changed files with 2 additions and 0 deletions

View File

@ -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"