]> rtime.felk.cvut.cz Git - can-utils.git/blobdiff - lib.h
header-guard for lib.h
[can-utils.git] / 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