From d0a91b27f26762e9c998cc5e6fe71767de5d32c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Tue, 5 Sep 2017 17:18:00 +0100 Subject: plugins: config.h must not be included by public headers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For a sane plugin build environment. Include config.h as the first header in the .c file instead. Fix by moving required compiler attribute macros to a new "ws_attributes.h" API header. Change-Id: I34f58a927f68c1a0e59686c14d214825149749e1 Reviewed-on: https://code.wireshark.org/review/23400 Petri-Dish: João Valverde Tested-by: Petri Dish Buildbot Reviewed-by: João Valverde --- codecs/G726/G726decode.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'codecs/G726') diff --git a/codecs/G726/G726decode.c b/codecs/G726/G726decode.c index fb98182614..b5580afd8b 100644 --- a/codecs/G726/G726decode.c +++ b/codecs/G726/G726decode.c @@ -27,6 +27,8 @@ #include "spandsp.h" #include "G726decode.h" +#include "ws_attributes.h" + typedef struct _g726_codec_ctx { g726_state_t *state; int bit_rate; -- cgit v1.2.3