]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Add header wrap defines to lib/buffer.h
authorPavel Tvrdík <pawel.tvrdik@gmail.cz>
Thu, 19 Mar 2015 17:42:33 +0000 (18:42 +0100)
committerPavel Tvrdík <pawel.tvrdik@gmail.cz>
Thu, 19 Mar 2015 17:42:33 +0000 (18:42 +0100)
lib/buffer.h

index cf073e88f05c75dfe0e8a0bf5a42349935c3ccaa..f01eaeeb27ae6fc09c20c2149291dcf8fe7d5222 100644 (file)
@@ -1,3 +1,13 @@
+/*
+ *     BIRD Library -- Buffer
+ *
+ *     Can be freely distributed and used under the terms of the GNU GPL.
+ */
+
+#ifndef _BIRD_BUFFER_H_
+#define _BIRD_BUFFER_H_
+
+#include "lib/resource.h"
 
 #define BUFFER(type)           struct { type *data; uint used, size; }
 
@@ -32,4 +42,4 @@
 
 #define BUFFER_FLUSH(v)                ({ (v).used = 0; })
 
-
+#endif /* _BIRD_BUFFER_H_ */