diff --git a/utils.h b/utils.h
--- a/utils.h
+++ b/utils.h
@@ -17,6 +17,9 @@
   along with serialplot.  If not, see .
 */
 
+#ifndef UTILS_H
+#define UTILS_H
+
 // credits: peppe@stackoverflow [http://stackoverflow.com/a/16795664/432492]
 template struct SELECT {
     template
@@ -24,3 +27,5 @@ template struct SELECT
         return pmf;
     }
 };
+
+#endif // UTILS_H