소스 검색

Fix a glib problem on some distros.

Godzil 4 년 전
부모
커밋
c1e7496d21
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  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: