Procházet zdrojové kódy

Fix a glib problem on some distros.

Godzil před 4 roky
rodič
revize
c1e7496d21
1 změnil soubory, kde provedl 8 přidání a 0 odebrání
  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: