]> sigrok.org Git - sigrok-firmware-fx2lafw.git/commitdiff
Add missing #include guards.
authorUwe Hermann <redacted>
Wed, 18 Jul 2012 10:49:43 +0000 (12:49 +0200)
committerUwe Hermann <redacted>
Wed, 18 Jul 2012 10:49:43 +0000 (12:49 +0200)
Without them there will be issues sooner or later, and the build _is_
broken already on MinGW without them.

include/command.h
include/fx2lafw.h
include/gpif-acquisition.h

index 2f7d3abf7381e1f2055c67eb18ebbe2eefe8251c..8f35fd65d078832626762a94a53b4bd37c371088 100644 (file)
@@ -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 <stdint.h>
 
 /* Protocol commands */
@@ -44,3 +47,5 @@ struct cmd_start_acquisition {
        uint8_t sample_delay_h;
        uint8_t sample_delay_l;
 };
+
+#endif
index b990e4e6b7aa3a22592df6d47e2dc553b4bae8ac..3f69361cafe6969913005beaf059a6b9fdc5855c 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
+#ifndef FX2LAFW_FX2LAFW_H
+#define FX2LAFW_FX2LAFW_H
+
 #include <autovector.h>
 
 #define SYNCDELAY() SYNCDELAY4
 
 #define FX2LAFW_VERSION_MAJOR  1
 #define FX2LAFW_VERSION_MINOR  0
+
+#endif
index b1fc1c8f2545188b49df4e9cdd8208d3b6be6c7a..ff6ecf5790850a2788488508e05bc2940a7e746e 100644 (file)
@@ -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 <stdbool.h>
 
 #include <command.h>
@@ -27,3 +30,5 @@ void gpif_init_la(void);
 bool gpif_acquisition_start(const struct cmd_start_acquisition *cmd);
 
 void gpif_poll(void);
+
+#endif