[PATCH v2 01/12] libusbg: Surround header with include guards.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Surround header with include guards to protect against
multiple inclusion.

Signed-off-by: Krzysztof Opasiak <k.opasiak@xxxxxxxxxxx>
---
 include/gadget/gadget.h |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/gadget/gadget.h b/include/gadget/gadget.h
index 9bca97e..f3c08e9 100644
--- a/include/gadget/gadget.h
+++ b/include/gadget/gadget.h
@@ -14,6 +14,9 @@
  * Lesser General Public License for more details.
  */
 
+#ifndef __GADGET_H__
+#define __GADGET_H__
+
 #include <dirent.h>
 #include <sys/queue.h>
 #include <netinet/ether.h>
@@ -438,3 +441,4 @@ extern void gadget_set_net_qmult(struct function *f, int qmult);
 /**
  * @}
  */
+#endif //__GADGET_H__
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux