From: Alexandru Gagniuc Date: Sun, 9 Dec 2012 19:15:24 +0000 (-0600) Subject: serial-dmm: Avoid duplicate symbol error X-Git-Tag: dsupstream~469 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=5b389efcfeff17b0f7466597706c898ad65eb6a9;p=libsigrok.git serial-dmm: Avoid duplicate symbol error Declare dmm_info dmms as extern in protocol.h to prevent duplicate symbol error from the linker. Signed-off-by: Alexandru Gagniuc --- diff --git a/hardware/serial-dmm/protocol.h b/hardware/serial-dmm/protocol.h index b3d9e1aa..09962bb3 100644 --- a/hardware/serial-dmm/protocol.h +++ b/hardware/serial-dmm/protocol.h @@ -59,7 +59,7 @@ struct dmm_info { void (*dmm_details)(struct sr_datafeed_analog *, void *); }; -SR_PRIV struct dmm_info dmms[DMM_COUNT]; +extern SR_PRIV struct dmm_info dmms[DMM_COUNT]; #define DMM_BUFSIZE 256