From: Daniel Elstner Date: Sun, 13 Sep 2015 16:22:17 +0000 (+0200) Subject: Build: Include first in all source files X-Git-Tag: libsigrok-0.4.0~301 X-Git-Url: http://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=6ec6c43b4738dbc7091f4a49a4ec80ea6102cb52 Build: Include first in all source files Since Autoconf places some important feature flags only into the configuration header, it is necessary to include it globally to guarantee a consistent build. --- diff --git a/bindings/cxx/ConfigKey_methods.cpp b/bindings/cxx/ConfigKey_methods.cpp index 06bdc121..e3b67c32 100644 --- a/bindings/cxx/ConfigKey_methods.cpp +++ b/bindings/cxx/ConfigKey_methods.cpp @@ -30,7 +30,7 @@ const ConfigKey *ConfigKey::get_by_identifier(string identifier) return get(info->key); } -#include "config.h" +#include #ifndef HAVE_STOI_STOD diff --git a/bindings/cxx/classes.cpp b/bindings/cxx/classes.cpp index b7a3d84d..324da042 100644 --- a/bindings/cxx/classes.cpp +++ b/bindings/cxx/classes.cpp @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include diff --git a/configure.ac b/configure.ac index 83604894..b4ba2b3d 100644 --- a/configure.ac +++ b/configure.ac @@ -33,10 +33,6 @@ AM_INIT_AUTOMAKE([1.11 -Wall -Werror no-define nostdinc subdir-objects check-new AM_SILENT_RULES([yes]) m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) -AH_TOP([#ifndef SR_CONFIG_H -#define SR_CONFIG_H /* To stop multiple inclusions. */]) -AH_BOTTOM([#endif /* SR_CONFIG_H */]) - AC_CANONICAL_HOST # Checks for programs. diff --git a/src/analog.c b/src/analog.c index dfb38cec..61f1f733 100644 --- a/src/analog.c +++ b/src/analog.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/backend.c b/src/backend.c index 5d0a0c93..8084a1c5 100644 --- a/src/backend.c +++ b/src/backend.c @@ -18,8 +18,8 @@ * along with this program. If not, see . */ +#include #include -#include "config.h" /* Needed for HAVE_LIBUSB_1_0 and others. */ #include #include "libsigrok-internal.h" diff --git a/src/device.c b/src/device.c index dd34f796..db86c61b 100644 --- a/src/device.c +++ b/src/device.c @@ -17,9 +17,9 @@ * along with this program. If not, see . */ +#include #include #include -#include "config.h" /* Needed for HAVE_LIBUSB_1_0 and others. */ #include #include "libsigrok-internal.h" diff --git a/src/dmm/bm25x.c b/src/dmm/bm25x.c index 1e231a90..1ea9c19a 100644 --- a/src/dmm/bm25x.c +++ b/src/dmm/bm25x.c @@ -23,6 +23,7 @@ * Brymen BM25x serial protocol parser. */ +#include #include #include #include "libsigrok-internal.h" diff --git a/src/dmm/es519xx.c b/src/dmm/es519xx.c index 2385a220..1c060e41 100644 --- a/src/dmm/es519xx.c +++ b/src/dmm/es519xx.c @@ -25,6 +25,7 @@ * Communication parameters: Unidirectional, 2400/7o1 or 19230/7o1 */ +#include #include #include #include diff --git a/src/dmm/fs9721.c b/src/dmm/fs9721.c index 6bc151a7..8edeed93 100644 --- a/src/dmm/fs9721.c +++ b/src/dmm/fs9721.c @@ -31,6 +31,7 @@ * - The protocol seems to be exactly the same. */ +#include #include #include #include diff --git a/src/dmm/fs9922.c b/src/dmm/fs9922.c index d2f6c6bf..ae2b4850 100644 --- a/src/dmm/fs9922.c +++ b/src/dmm/fs9922.c @@ -22,6 +22,7 @@ * Fortune Semiconductor FS9922-DMM3/FS9922-DMM4 protocol parser. */ +#include #include #include #include diff --git a/src/dmm/m2110.c b/src/dmm/m2110.c index 8f094a5c..edea1f26 100644 --- a/src/dmm/m2110.c +++ b/src/dmm/m2110.c @@ -25,6 +25,7 @@ * Most probably the simplest multimeter protocol ever ;-) . */ +#include #include #include #include diff --git a/src/dmm/metex14.c b/src/dmm/metex14.c index 81829d58..3fe99ace 100644 --- a/src/dmm/metex14.c +++ b/src/dmm/metex14.c @@ -30,6 +30,7 @@ * It does _not_ work for all Metex DMMs, some use a quite different protocol. */ +#include #include #include #include diff --git a/src/dmm/rs9lcd.c b/src/dmm/rs9lcd.c index 44080604..7db3d8a7 100644 --- a/src/dmm/rs9lcd.c +++ b/src/dmm/rs9lcd.c @@ -28,6 +28,7 @@ * and protocol is used on any other device. */ +#include #include #include #include diff --git a/src/dmm/ut372.c b/src/dmm/ut372.c index d2fd8bc9..49b4e3cb 100644 --- a/src/dmm/ut372.c +++ b/src/dmm/ut372.c @@ -22,6 +22,7 @@ * UNI-T UT372 protocol parser. */ +#include #include #include #include diff --git a/src/dmm/ut71x.c b/src/dmm/ut71x.c index d519ecc4..b17e0583 100644 --- a/src/dmm/ut71x.c +++ b/src/dmm/ut71x.c @@ -24,6 +24,7 @@ * Communication parameters: Unidirectional, 2400/7o1 */ +#include #include #include #include diff --git a/src/dmm/vc870.c b/src/dmm/vc870.c index c50e24d7..cf95e93b 100644 --- a/src/dmm/vc870.c +++ b/src/dmm/vc870.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include diff --git a/src/drivers.c b/src/drivers.c index 4b727f87..d2ad9f81 100644 --- a/src/drivers.c +++ b/src/drivers.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include "libsigrok-internal.h" diff --git a/src/error.c b/src/error.c index cc8dbf92..fcdfe5de 100644 --- a/src/error.c +++ b/src/error.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include /** diff --git a/src/ezusb.c b/src/ezusb.c index 601c818b..517e5f72 100644 --- a/src/ezusb.c +++ b/src/ezusb.c @@ -21,6 +21,7 @@ * Helper functions for the Cypress EZ-USB / FX2 series chips. */ +#include #include #include #include diff --git a/src/fallback.c b/src/fallback.c index 67767699..9a4a536b 100644 --- a/src/fallback.c +++ b/src/fallback.c @@ -17,8 +17,8 @@ * along with this program. If not, see . */ +#include #include -#include "config.h" #include #ifndef HAVE_LIBSERIALPORT diff --git a/src/hardware/agilent-dmm/api.c b/src/hardware/agilent-dmm/api.c index 273c7f06..82e43783 100644 --- a/src/hardware/agilent-dmm/api.c +++ b/src/hardware/agilent-dmm/api.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/hardware/agilent-dmm/sched.c b/src/hardware/agilent-dmm/sched.c index 2db3b748..a38ddc46 100644 --- a/src/hardware/agilent-dmm/sched.c +++ b/src/hardware/agilent-dmm/sched.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/hardware/appa-55ii/api.c b/src/hardware/appa-55ii/api.c index 580dbc2a..0ed6144a 100644 --- a/src/hardware/appa-55ii/api.c +++ b/src/hardware/appa-55ii/api.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include "protocol.h" diff --git a/src/hardware/appa-55ii/protocol.c b/src/hardware/appa-55ii/protocol.c index a439a148..9a061de1 100644 --- a/src/hardware/appa-55ii/protocol.c +++ b/src/hardware/appa-55ii/protocol.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include "protocol.h" diff --git a/src/hardware/asix-sigma/asix-sigma.c b/src/hardware/asix-sigma/asix-sigma.c index 0eaaf976..db40d533 100644 --- a/src/hardware/asix-sigma/asix-sigma.c +++ b/src/hardware/asix-sigma/asix-sigma.c @@ -23,6 +23,7 @@ * ASIX SIGMA/SIGMA2 logic analyzer driver */ +#include #include #include #include diff --git a/src/hardware/atten-pps3xxx/api.c b/src/hardware/atten-pps3xxx/api.c index fa367cc2..efe06acc 100644 --- a/src/hardware/atten-pps3xxx/api.c +++ b/src/hardware/atten-pps3xxx/api.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include "protocol.h" diff --git a/src/hardware/atten-pps3xxx/protocol.c b/src/hardware/atten-pps3xxx/protocol.c index 8e678a16..582a10d2 100644 --- a/src/hardware/atten-pps3xxx/protocol.c +++ b/src/hardware/atten-pps3xxx/protocol.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include "protocol.h" diff --git a/src/hardware/baylibre-acme/api.c b/src/hardware/baylibre-acme/api.c index 6b3b43e4..c116cbbb 100644 --- a/src/hardware/baylibre-acme/api.c +++ b/src/hardware/baylibre-acme/api.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include "protocol.h" #include #include diff --git a/src/hardware/baylibre-acme/gpio.c b/src/hardware/baylibre-acme/gpio.c index 93daff7b..cbabcf7f 100644 --- a/src/hardware/baylibre-acme/gpio.c +++ b/src/hardware/baylibre-acme/gpio.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/hardware/baylibre-acme/protocol.c b/src/hardware/baylibre-acme/protocol.c index cba1f7c0..d9131cb0 100644 --- a/src/hardware/baylibre-acme/protocol.c +++ b/src/hardware/baylibre-acme/protocol.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/hardware/beaglelogic/api.c b/src/hardware/beaglelogic/api.c index 604849c4..1c8e43b8 100644 --- a/src/hardware/beaglelogic/api.c +++ b/src/hardware/beaglelogic/api.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include "protocol.h" #include "beaglelogic.h" diff --git a/src/hardware/beaglelogic/protocol.c b/src/hardware/beaglelogic/protocol.c index e1f6009f..55e2b647 100644 --- a/src/hardware/beaglelogic/protocol.c +++ b/src/hardware/beaglelogic/protocol.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/hardware/brymen-bm86x/api.c b/src/hardware/brymen-bm86x/api.c index b2fae554..64e492c6 100644 --- a/src/hardware/brymen-bm86x/api.c +++ b/src/hardware/brymen-bm86x/api.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include "protocol.h" #define BRYMEN_BC86X "0820.0001" diff --git a/src/hardware/brymen-bm86x/protocol.c b/src/hardware/brymen-bm86x/protocol.c index 4538e3c4..2840696f 100644 --- a/src/hardware/brymen-bm86x/protocol.c +++ b/src/hardware/brymen-bm86x/protocol.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include "protocol.h" diff --git a/src/hardware/brymen-dmm/api.c b/src/hardware/brymen-dmm/api.c index b1c5339c..911789f8 100644 --- a/src/hardware/brymen-dmm/api.c +++ b/src/hardware/brymen-dmm/api.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include "protocol.h" static const uint32_t scanopts[] = { diff --git a/src/hardware/brymen-dmm/parser.c b/src/hardware/brymen-dmm/parser.c index c6de81f7..ad2252ba 100644 --- a/src/hardware/brymen-dmm/parser.c +++ b/src/hardware/brymen-dmm/parser.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include "protocol.h" #define MAX_PACKET_LEN 22 diff --git a/src/hardware/brymen-dmm/protocol.c b/src/hardware/brymen-dmm/protocol.c index 02e14d31..96ef6853 100644 --- a/src/hardware/brymen-dmm/protocol.c +++ b/src/hardware/brymen-dmm/protocol.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include "protocol.h" static void handle_packet(const uint8_t *buf, struct sr_dev_inst *sdi) diff --git a/src/hardware/cem-dt-885x/api.c b/src/hardware/cem-dt-885x/api.c index ebeebcf2..8a9a6e1e 100644 --- a/src/hardware/cem-dt-885x/api.c +++ b/src/hardware/cem-dt-885x/api.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include "protocol.h" diff --git a/src/hardware/cem-dt-885x/protocol.c b/src/hardware/cem-dt-885x/protocol.c index e3fea4c3..9c083dcd 100644 --- a/src/hardware/cem-dt-885x/protocol.c +++ b/src/hardware/cem-dt-885x/protocol.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include "protocol.h" diff --git a/src/hardware/center-3xx/api.c b/src/hardware/center-3xx/api.c index b041db82..7c459ba4 100644 --- a/src/hardware/center-3xx/api.c +++ b/src/hardware/center-3xx/api.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include "protocol.h" static const uint32_t scanopts[] = { diff --git a/src/hardware/center-3xx/protocol.c b/src/hardware/center-3xx/protocol.c index 4cb1b95a..bd00e77a 100644 --- a/src/hardware/center-3xx/protocol.c +++ b/src/hardware/center-3xx/protocol.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include "protocol.h" #define NUM_CHANNELS 4 diff --git a/src/hardware/chronovu-la/api.c b/src/hardware/chronovu-la/api.c index d735e1e1..e420d0aa 100644 --- a/src/hardware/chronovu-la/api.c +++ b/src/hardware/chronovu-la/api.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include "protocol.h" SR_PRIV struct sr_dev_driver chronovu_la_driver_info; diff --git a/src/hardware/chronovu-la/protocol.c b/src/hardware/chronovu-la/protocol.c index 7dc4f6bc..c3340d7c 100644 --- a/src/hardware/chronovu-la/protocol.c +++ b/src/hardware/chronovu-la/protocol.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include "protocol.h" SR_PRIV const struct cv_profile cv_profiles[] = { diff --git a/src/hardware/colead-slm/api.c b/src/hardware/colead-slm/api.c index 0e2c9198..cd8647df 100644 --- a/src/hardware/colead-slm/api.c +++ b/src/hardware/colead-slm/api.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/hardware/colead-slm/protocol.c b/src/hardware/colead-slm/protocol.c index f29d1bb9..9bf9eb21 100644 --- a/src/hardware/colead-slm/protocol.c +++ b/src/hardware/colead-slm/protocol.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/hardware/conrad-digi-35-cpu/api.c b/src/hardware/conrad-digi-35-cpu/api.c index 5af4b051..5d90a11c 100644 --- a/src/hardware/conrad-digi-35-cpu/api.c +++ b/src/hardware/conrad-digi-35-cpu/api.c @@ -22,6 +22,7 @@ * @internal */ +#include #include "protocol.h" #define SERIALCOMM "9600/8n1" diff --git a/src/hardware/conrad-digi-35-cpu/protocol.c b/src/hardware/conrad-digi-35-cpu/protocol.c index a414bd7b..32702d83 100644 --- a/src/hardware/conrad-digi-35-cpu/protocol.c +++ b/src/hardware/conrad-digi-35-cpu/protocol.c @@ -23,6 +23,7 @@ * @internal */ +#include #include "protocol.h" /** diff --git a/src/hardware/demo/demo.c b/src/hardware/demo/demo.c index 7f803109..f1163ef8 100644 --- a/src/hardware/demo/demo.c +++ b/src/hardware/demo/demo.c @@ -21,6 +21,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include diff --git a/src/hardware/deree-de5000/api.c b/src/hardware/deree-de5000/api.c index fdf0bc3e..b03c3a65 100644 --- a/src/hardware/deree-de5000/api.c +++ b/src/hardware/deree-de5000/api.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/hardware/fluke-dmm/api.c b/src/hardware/fluke-dmm/api.c index 47f598f2..808778db 100644 --- a/src/hardware/fluke-dmm/api.c +++ b/src/hardware/fluke-dmm/api.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/hardware/fluke-dmm/fluke.c b/src/hardware/fluke-dmm/fluke.c index 7604afa9..59b79ccd 100644 --- a/src/hardware/fluke-dmm/fluke.c +++ b/src/hardware/fluke-dmm/fluke.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/hardware/fx2lafw/api.c b/src/hardware/fx2lafw/api.c index 5cb36330..ed440537 100644 --- a/src/hardware/fx2lafw/api.c +++ b/src/hardware/fx2lafw/api.c @@ -18,6 +18,7 @@ * along with this program. If not, see . */ +#include #include "protocol.h" #include "dslogic.h" diff --git a/src/hardware/fx2lafw/dslogic.c b/src/hardware/fx2lafw/dslogic.c index 5d543ada..84d210b3 100644 --- a/src/hardware/fx2lafw/dslogic.c +++ b/src/hardware/fx2lafw/dslogic.c @@ -18,6 +18,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/hardware/fx2lafw/protocol.c b/src/hardware/fx2lafw/protocol.c index c87f659d..32a65c50 100644 --- a/src/hardware/fx2lafw/protocol.c +++ b/src/hardware/fx2lafw/protocol.c @@ -18,6 +18,7 @@ * along with this program. If not, see . */ +#include #include #include #include "protocol.h" diff --git a/src/hardware/gmc-mh-1x-2x/api.c b/src/hardware/gmc-mh-1x-2x/api.c index 890fec47..db11b027 100644 --- a/src/hardware/gmc-mh-1x-2x/api.c +++ b/src/hardware/gmc-mh-1x-2x/api.c @@ -22,6 +22,7 @@ * @internal */ +#include #include #include "protocol.h" diff --git a/src/hardware/gmc-mh-1x-2x/protocol.c b/src/hardware/gmc-mh-1x-2x/protocol.c index 6cd8694f..f544c271 100644 --- a/src/hardware/gmc-mh-1x-2x/protocol.c +++ b/src/hardware/gmc-mh-1x-2x/protocol.c @@ -22,6 +22,7 @@ * @internal */ +#include #include #include #include "protocol.h" diff --git a/src/hardware/hameg-hmo/api.c b/src/hardware/hameg-hmo/api.c index f1c271c8..7a2d91c7 100644 --- a/src/hardware/hameg-hmo/api.c +++ b/src/hardware/hameg-hmo/api.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include "scpi.h" #include "protocol.h" diff --git a/src/hardware/hameg-hmo/protocol.c b/src/hardware/hameg-hmo/protocol.c index b865d4a5..ea704eef 100644 --- a/src/hardware/hameg-hmo/protocol.c +++ b/src/hardware/hameg-hmo/protocol.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include "scpi.h" #include "protocol.h" diff --git a/src/hardware/hantek-dso/api.c b/src/hardware/hantek-dso/api.c index 90706065..4e8ac83f 100644 --- a/src/hardware/hantek-dso/api.c +++ b/src/hardware/hantek-dso/api.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/hardware/hantek-dso/dso.c b/src/hardware/hantek-dso/dso.c index 27ef63c1..79c16008 100644 --- a/src/hardware/hantek-dso/dso.c +++ b/src/hardware/hantek-dso/dso.c @@ -19,6 +19,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/hardware/hung-chang-dso-2100/api.c b/src/hardware/hung-chang-dso-2100/api.c index 1fd4df0b..b3b4634d 100644 --- a/src/hardware/hung-chang-dso-2100/api.c +++ b/src/hardware/hung-chang-dso-2100/api.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include "protocol.h" diff --git a/src/hardware/hung-chang-dso-2100/protocol.c b/src/hardware/hung-chang-dso-2100/protocol.c index 022fac7e..47fe8f0e 100644 --- a/src/hardware/hung-chang-dso-2100/protocol.c +++ b/src/hardware/hung-chang-dso-2100/protocol.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include "protocol.h" diff --git a/src/hardware/ikalogic-scanalogic2/api.c b/src/hardware/ikalogic-scanalogic2/api.c index 92b9946a..8988b493 100644 --- a/src/hardware/ikalogic-scanalogic2/api.c +++ b/src/hardware/ikalogic-scanalogic2/api.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include "protocol.h" static const uint32_t devopts[] = { diff --git a/src/hardware/ikalogic-scanalogic2/protocol.c b/src/hardware/ikalogic-scanalogic2/protocol.c index 90c16ef7..6db70261 100644 --- a/src/hardware/ikalogic-scanalogic2/protocol.c +++ b/src/hardware/ikalogic-scanalogic2/protocol.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include "protocol.h" extern struct sr_dev_driver ikalogic_scanalogic2_driver_info; diff --git a/src/hardware/ikalogic-scanaplus/api.c b/src/hardware/ikalogic-scanaplus/api.c index b0660d79..ba4652ec 100644 --- a/src/hardware/ikalogic-scanaplus/api.c +++ b/src/hardware/ikalogic-scanaplus/api.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include "protocol.h" #define USB_VENDOR_ID 0x0403 diff --git a/src/hardware/ikalogic-scanaplus/protocol.c b/src/hardware/ikalogic-scanaplus/protocol.c index 3a834f7b..0b81ebde 100644 --- a/src/hardware/ikalogic-scanaplus/protocol.c +++ b/src/hardware/ikalogic-scanaplus/protocol.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include "protocol.h" /* diff --git a/src/hardware/kecheng-kc-330b/api.c b/src/hardware/kecheng-kc-330b/api.c index e7bb5a21..d294bf02 100644 --- a/src/hardware/kecheng-kc-330b/api.c +++ b/src/hardware/kecheng-kc-330b/api.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include "protocol.h" diff --git a/src/hardware/kecheng-kc-330b/protocol.c b/src/hardware/kecheng-kc-330b/protocol.c index d79a92a5..1bca7520 100644 --- a/src/hardware/kecheng-kc-330b/protocol.c +++ b/src/hardware/kecheng-kc-330b/protocol.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include "protocol.h" diff --git a/src/hardware/kern-scale/api.c b/src/hardware/kern-scale/api.c index b0e4feef..0443f5e6 100644 --- a/src/hardware/kern-scale/api.c +++ b/src/hardware/kern-scale/api.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include "libsigrok-internal.h" diff --git a/src/hardware/kern-scale/protocol.c b/src/hardware/kern-scale/protocol.c index 28ebe717..182a9d80 100644 --- a/src/hardware/kern-scale/protocol.c +++ b/src/hardware/kern-scale/protocol.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include diff --git a/src/hardware/lascar-el-usb/api.c b/src/hardware/lascar-el-usb/api.c index 682366d0..ba906e07 100644 --- a/src/hardware/lascar-el-usb/api.c +++ b/src/hardware/lascar-el-usb/api.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/hardware/lascar-el-usb/protocol.c b/src/hardware/lascar-el-usb/protocol.c index bccf7b6a..24e85e5c 100644 --- a/src/hardware/lascar-el-usb/protocol.c +++ b/src/hardware/lascar-el-usb/protocol.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/hardware/link-mso19/api.c b/src/hardware/link-mso19/api.c index 8b4ccc7f..a0f033a8 100644 --- a/src/hardware/link-mso19/api.c +++ b/src/hardware/link-mso19/api.c @@ -19,6 +19,7 @@ * along with this program. If not, see . */ +#include #include "protocol.h" static const uint32_t devopts[] = { diff --git a/src/hardware/link-mso19/protocol.c b/src/hardware/link-mso19/protocol.c index 1a0b7bce..69551fe0 100644 --- a/src/hardware/link-mso19/protocol.c +++ b/src/hardware/link-mso19/protocol.c @@ -19,6 +19,7 @@ * along with this program. If not, see . */ +#include #include "protocol.h" /* serial protocol */ diff --git a/src/hardware/manson-hcs-3xxx/api.c b/src/hardware/manson-hcs-3xxx/api.c index c09d3205..0662a81e 100644 --- a/src/hardware/manson-hcs-3xxx/api.c +++ b/src/hardware/manson-hcs-3xxx/api.c @@ -24,6 +24,7 @@ * @internal */ +#include #include "protocol.h" static const uint32_t drvopts[] = { diff --git a/src/hardware/manson-hcs-3xxx/protocol.c b/src/hardware/manson-hcs-3xxx/protocol.c index 2dc09dcd..ad31d429 100644 --- a/src/hardware/manson-hcs-3xxx/protocol.c +++ b/src/hardware/manson-hcs-3xxx/protocol.c @@ -24,6 +24,7 @@ * @internal */ +#include #include "protocol.h" #define REQ_TIMEOUT_MS 500 diff --git a/src/hardware/maynuo-m97/api.c b/src/hardware/maynuo-m97/api.c index 494153fa..919cb862 100644 --- a/src/hardware/maynuo-m97/api.c +++ b/src/hardware/maynuo-m97/api.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include "protocol.h" static const uint32_t scanopts[] = { diff --git a/src/hardware/maynuo-m97/protocol.c b/src/hardware/maynuo-m97/protocol.c index 5ef16ac7..5be8d146 100644 --- a/src/hardware/maynuo-m97/protocol.c +++ b/src/hardware/maynuo-m97/protocol.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include "protocol.h" SR_PRIV int maynuo_m97_get_bit(struct sr_modbus_dev_inst *modbus, diff --git a/src/hardware/mic-985xx/api.c b/src/hardware/mic-985xx/api.c index 94e8e89c..775bcc04 100644 --- a/src/hardware/mic-985xx/api.c +++ b/src/hardware/mic-985xx/api.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include "protocol.h" static const uint32_t scanopts[] = { diff --git a/src/hardware/mic-985xx/protocol.c b/src/hardware/mic-985xx/protocol.c index 49f67980..9e3d9863 100644 --- a/src/hardware/mic-985xx/protocol.c +++ b/src/hardware/mic-985xx/protocol.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include "protocol.h" static int mic_send(struct sr_serial_dev_inst *serial, const char *cmd) diff --git a/src/hardware/motech-lps-30x/api.c b/src/hardware/motech-lps-30x/api.c index 9849717a..83fbcd2c 100644 --- a/src/hardware/motech-lps-30x/api.c +++ b/src/hardware/motech-lps-30x/api.c @@ -23,6 +23,7 @@ * @internal */ +#include #include #include #include diff --git a/src/hardware/motech-lps-30x/protocol.c b/src/hardware/motech-lps-30x/protocol.c index c7f65e10..81808faf 100644 --- a/src/hardware/motech-lps-30x/protocol.c +++ b/src/hardware/motech-lps-30x/protocol.c @@ -23,6 +23,7 @@ * @internal */ +#include #include #include #include "protocol.h" diff --git a/src/hardware/norma-dmm/api.c b/src/hardware/norma-dmm/api.c index 2626de6a..284ecf37 100644 --- a/src/hardware/norma-dmm/api.c +++ b/src/hardware/norma-dmm/api.c @@ -22,6 +22,7 @@ * @internal */ +#include #include "protocol.h" static const uint32_t scanopts[] = { diff --git a/src/hardware/norma-dmm/protocol.c b/src/hardware/norma-dmm/protocol.c index 2c700ad5..ea9cdb43 100644 --- a/src/hardware/norma-dmm/protocol.c +++ b/src/hardware/norma-dmm/protocol.c @@ -22,6 +22,7 @@ * @internal */ +#include #include "protocol.h" #define LINE_LENGTH 20 diff --git a/src/hardware/openbench-logic-sniffer/api.c b/src/hardware/openbench-logic-sniffer/api.c index 283d019c..27557935 100644 --- a/src/hardware/openbench-logic-sniffer/api.c +++ b/src/hardware/openbench-logic-sniffer/api.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include "protocol.h" #define SERIALCOMM "115200/8n1" diff --git a/src/hardware/openbench-logic-sniffer/protocol.c b/src/hardware/openbench-logic-sniffer/protocol.c index 75e0c8a6..eb848cf9 100644 --- a/src/hardware/openbench-logic-sniffer/protocol.c +++ b/src/hardware/openbench-logic-sniffer/protocol.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include "protocol.h" extern SR_PRIV struct sr_dev_driver ols_driver_info; diff --git a/src/hardware/pipistrello-ols/api.c b/src/hardware/pipistrello-ols/api.c index c5c53ce8..c467f0cc 100644 --- a/src/hardware/pipistrello-ols/api.c +++ b/src/hardware/pipistrello-ols/api.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include "protocol.h" static const uint32_t devopts[] = { diff --git a/src/hardware/pipistrello-ols/protocol.c b/src/hardware/pipistrello-ols/protocol.c index 3db3aa4b..17fe031d 100644 --- a/src/hardware/pipistrello-ols/protocol.c +++ b/src/hardware/pipistrello-ols/protocol.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include "protocol.h" extern SR_PRIV struct sr_dev_driver p_ols_driver_info; diff --git a/src/hardware/rigol-ds/api.c b/src/hardware/rigol-ds/api.c index 176478be..ba4b0206 100644 --- a/src/hardware/rigol-ds/api.c +++ b/src/hardware/rigol-ds/api.c @@ -19,6 +19,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/hardware/rigol-ds/protocol.c b/src/hardware/rigol-ds/protocol.c index 4647966c..16bfb478 100644 --- a/src/hardware/rigol-ds/protocol.c +++ b/src/hardware/rigol-ds/protocol.c @@ -19,6 +19,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/hardware/saleae-logic16/api.c b/src/hardware/saleae-logic16/api.c index af421d3c..95b28f12 100644 --- a/src/hardware/saleae-logic16/api.c +++ b/src/hardware/saleae-logic16/api.c @@ -19,6 +19,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/hardware/saleae-logic16/protocol.c b/src/hardware/saleae-logic16/protocol.c index 6858215c..af0eed6a 100644 --- a/src/hardware/saleae-logic16/protocol.c +++ b/src/hardware/saleae-logic16/protocol.c @@ -19,6 +19,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/hardware/scpi-pps/api.c b/src/hardware/scpi-pps/api.c index 1fddeea0..fbc71cee 100644 --- a/src/hardware/scpi-pps/api.c +++ b/src/hardware/scpi-pps/api.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include "scpi.h" diff --git a/src/hardware/scpi-pps/profiles.c b/src/hardware/scpi-pps/profiles.c index cc5c0ce3..fe6ea188 100644 --- a/src/hardware/scpi-pps/profiles.c +++ b/src/hardware/scpi-pps/profiles.c @@ -19,6 +19,7 @@ * along with this program. If not, see . */ +#include #include #include #include "protocol.h" diff --git a/src/hardware/scpi-pps/protocol.c b/src/hardware/scpi-pps/protocol.c index fcf3f21b..e9209b3e 100644 --- a/src/hardware/scpi-pps/protocol.c +++ b/src/hardware/scpi-pps/protocol.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/hardware/serial-dmm/api.c b/src/hardware/serial-dmm/api.c index 25e7bb61..3a4fa208 100644 --- a/src/hardware/serial-dmm/api.c +++ b/src/hardware/serial-dmm/api.c @@ -19,6 +19,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/hardware/serial-dmm/protocol.c b/src/hardware/serial-dmm/protocol.c index 2e092533..edf8382b 100644 --- a/src/hardware/serial-dmm/protocol.c +++ b/src/hardware/serial-dmm/protocol.c @@ -18,6 +18,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/hardware/sysclk-lwla/api.c b/src/hardware/sysclk-lwla/api.c index dc15bb18..98b1b7c6 100644 --- a/src/hardware/sysclk-lwla/api.c +++ b/src/hardware/sysclk-lwla/api.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/hardware/sysclk-lwla/lwla.c b/src/hardware/sysclk-lwla/lwla.c index d2f2a257..39dccbd2 100644 --- a/src/hardware/sysclk-lwla/lwla.c +++ b/src/hardware/sysclk-lwla/lwla.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/hardware/sysclk-lwla/protocol.c b/src/hardware/sysclk-lwla/protocol.c index f22d80ad..ccabdddf 100644 --- a/src/hardware/sysclk-lwla/protocol.c +++ b/src/hardware/sysclk-lwla/protocol.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include "protocol.h" diff --git a/src/hardware/teleinfo/api.c b/src/hardware/teleinfo/api.c index 540143e3..dbf7f03d 100644 --- a/src/hardware/teleinfo/api.c +++ b/src/hardware/teleinfo/api.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/hardware/teleinfo/protocol.c b/src/hardware/teleinfo/protocol.c index 96ca0200..94af473b 100644 --- a/src/hardware/teleinfo/protocol.c +++ b/src/hardware/teleinfo/protocol.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/hardware/testo/api.c b/src/hardware/testo/api.c index 0ac6a32c..6907ba4e 100644 --- a/src/hardware/testo/api.c +++ b/src/hardware/testo/api.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include "protocol.h" diff --git a/src/hardware/testo/protocol.c b/src/hardware/testo/protocol.c index d2e7c7ed..9af799c5 100644 --- a/src/hardware/testo/protocol.c +++ b/src/hardware/testo/protocol.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include "protocol.h" diff --git a/src/hardware/tondaj-sl-814/api.c b/src/hardware/tondaj-sl-814/api.c index fceca244..5e83defe 100644 --- a/src/hardware/tondaj-sl-814/api.c +++ b/src/hardware/tondaj-sl-814/api.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include diff --git a/src/hardware/tondaj-sl-814/protocol.c b/src/hardware/tondaj-sl-814/protocol.c index 97ab844e..a3696b69 100644 --- a/src/hardware/tondaj-sl-814/protocol.c +++ b/src/hardware/tondaj-sl-814/protocol.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include diff --git a/src/hardware/uni-t-dmm/api.c b/src/hardware/uni-t-dmm/api.c index b92d5d14..9a614e9d 100644 --- a/src/hardware/uni-t-dmm/api.c +++ b/src/hardware/uni-t-dmm/api.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include diff --git a/src/hardware/uni-t-dmm/protocol.c b/src/hardware/uni-t-dmm/protocol.c index f30b1d9b..a6a8c715 100644 --- a/src/hardware/uni-t-dmm/protocol.c +++ b/src/hardware/uni-t-dmm/protocol.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include diff --git a/src/hardware/uni-t-ut32x/api.c b/src/hardware/uni-t-ut32x/api.c index c2872666..433729e2 100644 --- a/src/hardware/uni-t-ut32x/api.c +++ b/src/hardware/uni-t-ut32x/api.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include "protocol.h" diff --git a/src/hardware/uni-t-ut32x/protocol.c b/src/hardware/uni-t-ut32x/protocol.c index 0c7829f8..beced8d4 100644 --- a/src/hardware/uni-t-ut32x/protocol.c +++ b/src/hardware/uni-t-ut32x/protocol.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include "protocol.h" diff --git a/src/hardware/victor-dmm/api.c b/src/hardware/victor-dmm/api.c index 43b37342..6f7416ce 100644 --- a/src/hardware/victor-dmm/api.c +++ b/src/hardware/victor-dmm/api.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/hardware/victor-dmm/protocol.c b/src/hardware/victor-dmm/protocol.c index 2e9392db..d8d2b51d 100644 --- a/src/hardware/victor-dmm/protocol.c +++ b/src/hardware/victor-dmm/protocol.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/hardware/yokogawa-dlm/api.c b/src/hardware/yokogawa-dlm/api.c index 9e943f23..1e51e7e9 100644 --- a/src/hardware/yokogawa-dlm/api.c +++ b/src/hardware/yokogawa-dlm/api.c @@ -18,6 +18,7 @@ * along with this program. If not, see . */ +#include #include #include "scpi.h" #include "protocol.h" diff --git a/src/hardware/yokogawa-dlm/protocol.c b/src/hardware/yokogawa-dlm/protocol.c index 3de55cf4..aef6197b 100644 --- a/src/hardware/yokogawa-dlm/protocol.c +++ b/src/hardware/yokogawa-dlm/protocol.c @@ -25,6 +25,7 @@ * @internal */ +#include #include "scpi.h" #include "protocol.h" diff --git a/src/hardware/yokogawa-dlm/protocol_wrappers.c b/src/hardware/yokogawa-dlm/protocol_wrappers.c index 3bf98d5c..e2a05be9 100644 --- a/src/hardware/yokogawa-dlm/protocol_wrappers.c +++ b/src/hardware/yokogawa-dlm/protocol_wrappers.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include "protocol_wrappers.h" #define MAX_COMMAND_SIZE 64 diff --git a/src/hardware/zeroplus-logic-cube/analyzer.c b/src/hardware/zeroplus-logic-cube/analyzer.c index 6af8cfc7..94cf0689 100644 --- a/src/hardware/zeroplus-logic-cube/analyzer.c +++ b/src/hardware/zeroplus-logic-cube/analyzer.c @@ -29,6 +29,7 @@ * THE POSSIBILITY OF SUCH DAMAGE. */ +#include #include #include #include "libsigrok-internal.h" diff --git a/src/hardware/zeroplus-logic-cube/api.c b/src/hardware/zeroplus-logic-cube/api.c index 62577a14..7886fbbd 100644 --- a/src/hardware/zeroplus-logic-cube/api.c +++ b/src/hardware/zeroplus-logic-cube/api.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include "protocol.h" #define VENDOR_NAME "ZEROPLUS" diff --git a/src/hardware/zeroplus-logic-cube/gl_usb.c b/src/hardware/zeroplus-logic-cube/gl_usb.c index 812e4a76..0d662f65 100644 --- a/src/hardware/zeroplus-logic-cube/gl_usb.c +++ b/src/hardware/zeroplus-logic-cube/gl_usb.c @@ -29,6 +29,7 @@ * THE POSSIBILITY OF SUCH DAMAGE. */ +#include #include #include #include diff --git a/src/hardware/zeroplus-logic-cube/protocol.c b/src/hardware/zeroplus-logic-cube/protocol.c index de488bf1..6e0e9614 100644 --- a/src/hardware/zeroplus-logic-cube/protocol.c +++ b/src/hardware/zeroplus-logic-cube/protocol.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include "protocol.h" diff --git a/src/hwdriver.c b/src/hwdriver.c index 0700276c..fa730a97 100644 --- a/src/hwdriver.c +++ b/src/hwdriver.c @@ -17,13 +17,13 @@ * along with this program. If not, see . */ +#include #include #include #include #include #include #include -#include "config.h" /* Needed for HAVE_LIBUSB_1_0 and others. */ #include #include "libsigrok-internal.h" diff --git a/src/input/binary.c b/src/input/binary.c index 23b9574f..736e4cf2 100644 --- a/src/input/binary.c +++ b/src/input/binary.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/input/chronovu_la8.c b/src/input/chronovu_la8.c index 97eac150..53e14773 100644 --- a/src/input/chronovu_la8.c +++ b/src/input/chronovu_la8.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include diff --git a/src/input/csv.c b/src/input/csv.c index 0a2d7276..063145a0 100644 --- a/src/input/csv.c +++ b/src/input/csv.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/input/input.c b/src/input/input.c index 9bae0970..a6de80e5 100644 --- a/src/input/input.c +++ b/src/input/input.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/input/vcd.c b/src/input/vcd.c index 0ca7705a..75efc0d5 100644 --- a/src/input/vcd.c +++ b/src/input/vcd.c @@ -57,6 +57,7 @@ * - more than 64 channels */ +#include #include #include #include diff --git a/src/input/wav.c b/src/input/wav.c index f2d5db0d..2f01f7d8 100644 --- a/src/input/wav.c +++ b/src/input/wav.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/lcr/es51919.c b/src/lcr/es51919.c index cbce7dcd..91aedbca 100644 --- a/src/lcr/es51919.c +++ b/src/lcr/es51919.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/libsigrok-internal.h b/src/libsigrok-internal.h index c2fa671b..624a141c 100644 --- a/src/libsigrok-internal.h +++ b/src/libsigrok-internal.h @@ -26,7 +26,6 @@ #include #include -#include "config.h" /* Needed for HAVE_LIBUSB_1_0 and others. */ #ifdef HAVE_LIBUSB_1_0 #include #endif diff --git a/src/log.c b/src/log.c index db5a3fd4..3d65cc4e 100644 --- a/src/log.c +++ b/src/log.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include diff --git a/src/modbus/modbus.c b/src/modbus/modbus.c index e91f6f5e..a75685d7 100644 --- a/src/modbus/modbus.c +++ b/src/modbus/modbus.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/modbus/modbus_serial_rtu.c b/src/modbus/modbus_serial_rtu.c index b723020b..2cb589b9 100644 --- a/src/modbus/modbus_serial_rtu.c +++ b/src/modbus/modbus_serial_rtu.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/output/analog.c b/src/output/analog.c index 9d6f56a3..6a9ab597 100644 --- a/src/output/analog.c +++ b/src/output/analog.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/output/ascii.c b/src/output/ascii.c index 1f60c680..cc67bd9e 100644 --- a/src/output/ascii.c +++ b/src/output/ascii.c @@ -18,6 +18,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/output/binary.c b/src/output/binary.c index 196aa475..943b6ebc 100644 --- a/src/output/binary.c +++ b/src/output/binary.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include diff --git a/src/output/bits.c b/src/output/bits.c index 79146adf..71cbd95a 100644 --- a/src/output/bits.c +++ b/src/output/bits.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/output/chronovu_la8.c b/src/output/chronovu_la8.c index acb499d3..2793f97a 100644 --- a/src/output/chronovu_la8.c +++ b/src/output/chronovu_la8.c @@ -18,6 +18,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/output/csv.c b/src/output/csv.c index 8b234424..ecbf562d 100644 --- a/src/output/csv.c +++ b/src/output/csv.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include diff --git a/src/output/gnuplot.c b/src/output/gnuplot.c index c9290739..9a2a78cd 100644 --- a/src/output/gnuplot.c +++ b/src/output/gnuplot.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include diff --git a/src/output/hex.c b/src/output/hex.c index 10e4d0cc..5d9e0f55 100644 --- a/src/output/hex.c +++ b/src/output/hex.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/output/ols.c b/src/output/ols.c index 55a8dec2..5266c27c 100644 --- a/src/output/ols.c +++ b/src/output/ols.c @@ -25,6 +25,7 @@ * https://github.com/jawi/ols/wiki/OLS-data-file-format */ +#include #include #include #include diff --git a/src/output/output.c b/src/output/output.c index df22b222..5d76b1cf 100644 --- a/src/output/output.c +++ b/src/output/output.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include "libsigrok-internal.h" diff --git a/src/output/srzip.c b/src/output/srzip.c index 476ed57a..2d2ce720 100644 --- a/src/output/srzip.c +++ b/src/output/srzip.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/output/vcd.c b/src/output/vcd.c index fd7b9123..33eeeb51 100644 --- a/src/output/vcd.c +++ b/src/output/vcd.c @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include diff --git a/src/output/wav.c b/src/output/wav.c index c2360235..fb809500 100644 --- a/src/output/wav.c +++ b/src/output/wav.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include "libsigrok-internal.h" diff --git a/src/scale/kern.c b/src/scale/kern.c index 9784c952..0360030d 100644 --- a/src/scale/kern.c +++ b/src/scale/kern.c @@ -22,6 +22,7 @@ * KERN scale protocol parser. */ +#include #include #include #include diff --git a/src/scpi/helpers.c b/src/scpi/helpers.c index 999658a5..9efa10c5 100644 --- a/src/scpi/helpers.c +++ b/src/scpi/helpers.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include "libsigrok-internal.h" diff --git a/src/scpi/scpi.c b/src/scpi/scpi.c index e198b2bd..9b5b1ea9 100644 --- a/src/scpi/scpi.c +++ b/src/scpi/scpi.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/scpi/scpi_libgpib.c b/src/scpi/scpi_libgpib.c index 6b156b2c..67d6b003 100644 --- a/src/scpi/scpi_libgpib.c +++ b/src/scpi/scpi_libgpib.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/scpi/scpi_serial.c b/src/scpi/scpi_serial.c index cad41381..257ff883 100644 --- a/src/scpi/scpi_serial.c +++ b/src/scpi/scpi_serial.c @@ -18,6 +18,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/scpi/scpi_tcp.c b/src/scpi/scpi_tcp.c index 14a2d2cb..43b7a78a 100644 --- a/src/scpi/scpi_tcp.c +++ b/src/scpi/scpi_tcp.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #ifdef _WIN32 #define _WIN32_WINNT 0x0501 #include diff --git a/src/scpi/scpi_usbtmc_libusb.c b/src/scpi/scpi_usbtmc_libusb.c index b7892436..36ff316b 100644 --- a/src/scpi/scpi_usbtmc_libusb.c +++ b/src/scpi/scpi_usbtmc_libusb.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include "libsigrok-internal.h" diff --git a/src/scpi/scpi_visa.c b/src/scpi/scpi_visa.c index 335de05f..fee25ba1 100644 --- a/src/scpi/scpi_visa.c +++ b/src/scpi/scpi_visa.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/scpi/scpi_vxi.c b/src/scpi/scpi_vxi.c index cef0cf0b..c1329088 100644 --- a/src/scpi/scpi_vxi.c +++ b/src/scpi/scpi_vxi.c @@ -20,6 +20,7 @@ * along with this program. If not, see . */ +#include #include "vxi.h" #include #include diff --git a/src/scpi/vxi_clnt.c b/src/scpi/vxi_clnt.c index 313bfd7f..a7c24465 100644 --- a/src/scpi/vxi_clnt.c +++ b/src/scpi/vxi_clnt.c @@ -3,6 +3,7 @@ * It was generated using rpcgen. */ +#include #include "vxi.h" #include /* for memset */ diff --git a/src/scpi/vxi_xdr.c b/src/scpi/vxi_xdr.c index bc7d79f8..502769d5 100644 --- a/src/scpi/vxi_xdr.c +++ b/src/scpi/vxi_xdr.c @@ -3,6 +3,7 @@ * It was generated using rpcgen. */ +#include #include "vxi.h" bool_t diff --git a/src/serial.c b/src/serial.c index e19c7c87..27244da3 100644 --- a/src/serial.c +++ b/src/serial.c @@ -20,6 +20,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/session.c b/src/session.c index b8859021..8211438e 100644 --- a/src/session.c +++ b/src/session.c @@ -18,6 +18,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/session_driver.c b/src/session_driver.c index 72011d2f..4fea5881 100644 --- a/src/session_driver.c +++ b/src/session_driver.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/session_file.c b/src/session_file.c index b497aad8..9def98d7 100644 --- a/src/session_file.c +++ b/src/session_file.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/soft-trigger.c b/src/soft-trigger.c index 116e7b34..50fdd41c 100644 --- a/src/soft-trigger.c +++ b/src/soft-trigger.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include "libsigrok-internal.h" diff --git a/src/std.c b/src/std.c index 05133a2f..55952240 100644 --- a/src/std.c +++ b/src/std.c @@ -23,6 +23,7 @@ * @internal */ +#include #include #include #include "libsigrok-internal.h" diff --git a/src/strutil.c b/src/strutil.c index 8d42be3f..dbccdfa8 100644 --- a/src/strutil.c +++ b/src/strutil.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include diff --git a/src/transform/invert.c b/src/transform/invert.c index 5a64afac..14a92fb7 100644 --- a/src/transform/invert.c +++ b/src/transform/invert.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include "libsigrok-internal.h" diff --git a/src/transform/nop.c b/src/transform/nop.c index 56251bd1..c184d20a 100644 --- a/src/transform/nop.c +++ b/src/transform/nop.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include "libsigrok-internal.h" diff --git a/src/transform/scale.c b/src/transform/scale.c index 5b9c99c5..e0ecd3de 100644 --- a/src/transform/scale.c +++ b/src/transform/scale.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include "libsigrok-internal.h" diff --git a/src/transform/transform.c b/src/transform/transform.c index f8ae7970..6334ed21 100644 --- a/src/transform/transform.c +++ b/src/transform/transform.c @@ -18,6 +18,7 @@ * along with this program. If not, see . */ +#include #include #include #include "libsigrok-internal.h" diff --git a/src/trigger.c b/src/trigger.c index 4b95a5a1..8a800b86 100644 --- a/src/trigger.c +++ b/src/trigger.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include "libsigrok-internal.h" diff --git a/src/usb.c b/src/usb.c index d66f1880..31e5df91 100644 --- a/src/usb.c +++ b/src/usb.c @@ -19,6 +19,7 @@ * along with this program. If not, see . */ +#include #include #include #include diff --git a/src/version.c b/src/version.c index 10bd726d..068641d2 100644 --- a/src/version.c +++ b/src/version.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include /** diff --git a/tests/core.c b/tests/core.c index 1d297178..2d18d19e 100644 --- a/tests/core.c +++ b/tests/core.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include diff --git a/tests/device.c b/tests/device.c index f98757dc..15f60f75 100644 --- a/tests/device.c +++ b/tests/device.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include diff --git a/tests/driver_all.c b/tests/driver_all.c index d87ff3e6..c3334c4b 100644 --- a/tests/driver_all.c +++ b/tests/driver_all.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include diff --git a/tests/input_all.c b/tests/input_all.c index 38adebdc..8dc85de0 100644 --- a/tests/input_all.c +++ b/tests/input_all.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include diff --git a/tests/input_binary.c b/tests/input_binary.c index 307950b9..282bc46f 100644 --- a/tests/input_binary.c +++ b/tests/input_binary.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include diff --git a/tests/lib.c b/tests/lib.c index 43f20b2a..a36167bf 100644 --- a/tests/lib.c +++ b/tests/lib.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include diff --git a/tests/main.c b/tests/main.c index 328d3a02..e3ba55ae 100644 --- a/tests/main.c +++ b/tests/main.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include diff --git a/tests/output_all.c b/tests/output_all.c index e27d18f6..a1f6f762 100644 --- a/tests/output_all.c +++ b/tests/output_all.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include diff --git a/tests/session.c b/tests/session.c index 4319c5ae..cfdf53f6 100644 --- a/tests/session.c +++ b/tests/session.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include diff --git a/tests/strutil.c b/tests/strutil.c index 2f4503da..53417fba 100644 --- a/tests/strutil.c +++ b/tests/strutil.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include "lib.h" diff --git a/tests/transform_all.c b/tests/transform_all.c index 6a578a08..785d99df 100644 --- a/tests/transform_all.c +++ b/tests/transform_all.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include diff --git a/tests/trigger.c b/tests/trigger.c index ecd10306..1f289196 100644 --- a/tests/trigger.c +++ b/tests/trigger.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include diff --git a/tests/version.c b/tests/version.c index 4217ad51..62806809 100644 --- a/tests/version.c +++ b/tests/version.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include