From: Uwe Hermann Date: Wed, 18 Jul 2012 10:49:43 +0000 (+0200) Subject: Add missing #include guards. X-Git-Tag: sigrok-firmware-fx2lafw-0.1.0~15 X-Git-Url: http://sigrok.org/gitweb/?a=commitdiff_plain;h=cb87c238f743afa9e563740e1bec436ea839796e;hp=b8fa53aa1c203413c179a80c8513706a3155c7e8;p=sigrok-firmware-fx2lafw.git Add missing #include guards. Without them there will be issues sooner or later, and the build _is_ broken already on MinGW without them. --- diff --git a/include/command.h b/include/command.h index 2f7d3abf..8f35fd65 100644 --- a/include/command.h +++ b/include/command.h @@ -18,6 +18,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#ifndef FX2LAFW_COMMAND_H +#define FX2LAFW_COMMAND_H + #include /* Protocol commands */ @@ -44,3 +47,5 @@ struct cmd_start_acquisition { uint8_t sample_delay_h; uint8_t sample_delay_l; }; + +#endif diff --git a/include/fx2lafw.h b/include/fx2lafw.h index b990e4e6..3f69361c 100644 --- a/include/fx2lafw.h +++ b/include/fx2lafw.h @@ -18,9 +18,14 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#ifndef FX2LAFW_FX2LAFW_H +#define FX2LAFW_FX2LAFW_H + #include #define SYNCDELAY() SYNCDELAY4 #define FX2LAFW_VERSION_MAJOR 1 #define FX2LAFW_VERSION_MINOR 0 + +#endif diff --git a/include/gpif-acquisition.h b/include/gpif-acquisition.h index b1fc1c8f..ff6ecf57 100644 --- a/include/gpif-acquisition.h +++ b/include/gpif-acquisition.h @@ -18,6 +18,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#ifndef FX2LAFW_GPIF_ACQUISITION_H +#define FX2LAFW_GPIF_ACQUISITION_H + #include #include @@ -27,3 +30,5 @@ void gpif_init_la(void); bool gpif_acquisition_start(const struct cmd_start_acquisition *cmd); void gpif_poll(void); + +#endif