From 15eda1ea7ba6a97bf925486a8a57b15f744ca106 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Sat, 11 Aug 2018 10:37:24 +0300 Subject: [PATCH] Add include guards --- cmaybe.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmaybe.h b/cmaybe.h index 152ece3..bdfb824 100644 --- a/cmaybe.h +++ b/cmaybe.h @@ -1,3 +1,6 @@ +#ifndef __CMAYBE_H__ +#define __CMAYBE_H__ + #define MAYBE_TYPE(name, type) struct maybe_##name {type value; char is_value;} #define MAYBE(name) struct maybe_##name @@ -15,3 +18,5 @@ #define IS_VALUE(x) if((x).is_value) #define IS_NOT_VALUE(x) if(!(x).is_value) #define VALUE(x) (x).value + +#endif