]> rtime.felk.cvut.cz Git - can-utils.git/commitdiff
header-guard for lib.h
authorajneu <ajneu@users.noreply.github.com>
Mon, 13 Jun 2016 08:52:41 +0000 (10:52 +0200)
committerajneu <ajneu@users.noreply.github.com>
Mon, 13 Jun 2016 08:52:41 +0000 (10:52 +0200)
lib.h

diff --git a/lib.h b/lib.h
index 36c3a099c1a6518b9cee01ad08f57292b47ef4da..2837278a3639c5f327114701e0886190052ab015 100644 (file)
--- a/lib.h
+++ b/lib.h
  *
  */
 
+#ifndef CAN_UTILS_LIB_H
+#define CAN_UTILS_LIB_H
+
+#include <stdio.h>
+
 /* buffer sizes for CAN frame string representations */
 
 #define CL_ID (sizeof("12345678##1"))
@@ -208,3 +213,5 @@ void snprintf_can_error_frame(char *buf, size_t len, const struct canfd_frame *c
 /*
  * Creates a CAN error frame output in user readable format.
  */
+
+#endif