From 73e2354e4c4dfcffe413562e0f9f0169c8f6b50e Mon Sep 17 00:00:00 2001 From: Pascal Quantin Date: Tue, 18 Apr 2017 21:55:30 +0200 Subject: 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 Reviewed-by: Guy Harris --- plugins/mate/mate_grammar.lemon | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins') 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" -- cgit v1.2.1