You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-mathematics/polymake/files/polymake_gcc49.patch

69 lines
2.4 KiB

commit 9fdecb57cb728170d0b87637c67947acf0cd27a4
Author: Benjamin Lorenz <lorenz@math.tu-berlin.de>
Date: Sat May 17 23:05:41 2014 +0200
fix ppl configure.pl test for gcc 4.9
diff --git a/bundled/ppl/configure.pl b/bundled/ppl/configure.pl
index 128af1f..a147ea1 100644
--- a/bundled/ppl/configure.pl
+++ b/bundled/ppl/configure.pl
@@ -43,6 +43,7 @@ sub proceed {
} else {
my $error=Polymake::Configure::build_test_program(<<"---", Libs => "-lppl -lgmp");
+#include <cstddef>
#include "ppl.hh"
#include <iostream>
int main() {
commit 6651dd4b284085ffb7385d6cbca1785b6242003b
Author: Benjamin Lorenz <lorenz@math.tu-berlin.de>
Date: Wed May 7 15:53:12 2014 +0200
another gcc 4.9 cstddef header fix
diff --git a/bundled/bliss/apps/graph/src/GraphIso.cc b/bundled/bliss/apps/graph/src/GraphIso.cc
index 4000dd5..14e0e8f 100644
--- a/bundled/bliss/apps/graph/src/GraphIso.cc
+++ b/bundled/bliss/apps/graph/src/GraphIso.cc
@@ -15,6 +15,7 @@
*/
#include <cstring>
+#include <cstddef> // needed for gcc 4.9, see http://gcc.gnu.org/gcc-4.9/porting_to.html
#include <bliss/graph.hh>
#include "polymake/graph/GraphIso.h"
commit 716639b858f476d6a2fd8fe51da67d6cb347ec7c
Author: Benjamin Lorenz <lorenz@math.tu-berlin.de>
Date: Tue May 6 14:58:33 2014 +0200
cstddef include fix for gcc 4.9 (see http://gcc.gnu.org/gcc-4.9/porting_to.html)
diff --git a/bundled/libnormaliz/apps/polytope/src/normaliz.cc b/bundled/libnormaliz/apps/polytope/src/normaliz.cc
index e6f2208..81e9783 100644
--- a/bundled/libnormaliz/apps/polytope/src/normaliz.cc
+++ b/bundled/libnormaliz/apps/polytope/src/normaliz.cc
@@ -14,6 +14,7 @@
--------------------------------------------------------------------------------
*/
+#include <cstddef> // needed for gcc 4.9, see http://gcc.gnu.org/gcc-4.9/porting_to.html
#include <gmpxx.h>
#include "polymake/client.h"
diff --git a/bundled/ppl/apps/polytope/include/ppl_interface_impl.h b/bundled/ppl/apps/polytope/include/ppl_interface_impl.h
index fda2f39..1040c9e 100644
--- a/bundled/ppl/apps/polytope/include/ppl_interface_impl.h
+++ b/bundled/ppl/apps/polytope/include/ppl_interface_impl.h
@@ -17,6 +17,7 @@
#ifndef POLYMAKE_POLYTOPE_PPL_INTERFACE_IMPL_H
#define POLYMAKE_POLYTOPE_PPL_INTERFACE_IMPL_H
+#include <cstddef> // needed for gcc 4.9, see http://gcc.gnu.org/gcc-4.9/porting_to.html
#include <gmpxx.h> //for mpz/mpq-handling
#include "polymake/polytope/ppl_interface.h"
#include "polymake/common/lattice_tools.h"