Explorar el Código

Fix a glib problem on some distros.

Godzil hace 4 años
padre
commit
c1e7496d21
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8 0
      source/include/matrix.h

+ 8 - 0
source/include/matrix.h

@@ -11,6 +11,14 @@
 
 #include <tuple.h>
 
+/* Some **** linux distro seems to define "minor" as a macro
+ * and wreak havoc.
+ * Let's make sure we are clean here 
+ */
+#ifdef minor
+#undef minor
+#endif
+
 class Matrix
 {
 protected: