]> git.sesse.net Git - movit/blobdiff - util.h
Prefix include guards with _MOVIT to avoid clashes with external files.
[movit] / util.h
diff --git a/util.h b/util.h
index 8917dd3cf9e039c4ead7008d7d0a162af54d24ee..e12c2c422e114f72c5e2739af2a94a8fec575688 100644 (file)
--- a/util.h
+++ b/util.h
@@ -1,15 +1,13 @@
-#ifndef _UTIL_H
-#define _UTIL_H 1
+#ifndef _MOVIT_UTIL_H
+#define _MOVIT_UTIL_H 1
 
 // Various utilities.
 
+#include <GL/glew.h>
 #include <stdio.h>
 #include <stdlib.h>
-
-#include <string>
 #include <Eigen/Core>
-
-#include <GL/glew.h>
+#include <string>
 
 #define BUFFER_OFFSET(i) ((char *)NULL + (i))
 
@@ -62,4 +60,4 @@ void combine_two_samples(float w1, float w2, float *offset, float *total_weight,
 #define CHECK(x) do { bool ok = x; if (!ok) { fprintf(stderr, "%s:%d: %s: Assertion `%s' failed.\n", __FILE__, __LINE__, __PRETTY_FUNCTION__, #x); abort(); } } while (false)
 #endif
 
-#endif // !defined(_UTIL_H)
+#endif // !defined(_MOVIT_UTIL_H)