Simplify the GNUC versions tests

This commit is contained in:
Maxime Gimeno
2021-05-12 15:45:07 +02:00
parent 393ae7dae6
commit e6c767d5c9
68 changed files with 35 additions and 410 deletions
@@ -10,9 +10,7 @@
#include <CGAL/intersections.h>
#include <CGAL/Circular_kernel_2.h>
#include <CGAL/Object.h>
#if (! defined(BOOST_GCC) || BOOST_GCC >= 40500)
#include <CGAL/IO/WKT.h>
#endif
// Qt headers
#include <QtGui>
@@ -216,9 +214,7 @@ MainWindow::on_actionLoadLineAndCircularArcs_triggered()
tr("Open Line and Circular Arc File"),
".",
tr("Edge files (*.arc)\n"
#if (! defined(BOOST_GCC) || BOOST_GCC >= 40500)
"WKT files (*.wkt *.WKT)\n"
#endif
));
if(! fileName.isEmpty()){
open(fileName);
@@ -236,7 +232,6 @@ MainWindow::open(QString fileName)
double x,y;
if(fileName.endsWith(".wkt", Qt::CaseInsensitive))
{
#if (! defined(BOOST_GCC) || BOOST_GCC >= 40500)
//read pairs as Line_arc_2 and triplets as circular_arc_2
do
{
@@ -279,7 +274,6 @@ MainWindow::open(QString fileName)
}
}while(ifs.good() && !ifs.eof());
ifs.close();
#endif
}
else
{