mirror of https://github.com/CGAL/cgal
Made sure we include CGAL_basic.h before referring to any CGAL_USE_ flags.
This commit is contained in:
parent
00b9eec7bc
commit
647d35550c
|
|
@ -21,6 +21,7 @@
|
||||||
#include <CGAL/basic.h>
|
#include <CGAL/basic.h>
|
||||||
|
|
||||||
#ifdef CGAL_USE_QT
|
#ifdef CGAL_USE_QT
|
||||||
|
#ifdef CGAL_USE_CORE
|
||||||
|
|
||||||
#include "MyWindow.h"
|
#include "MyWindow.h"
|
||||||
#include "forms.h"
|
#include "forms.h"
|
||||||
|
|
@ -435,20 +436,27 @@ int main(int argc, char **argv)
|
||||||
return app.exec();
|
return app.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else // CGAL_USE_CORE not defined:
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
int main(int, char*)
|
||||||
|
{
|
||||||
|
std::cout << "Sorry, this demo needs CORE ..." << std::endl;
|
||||||
|
|
||||||
|
return (0);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // CGAL_USE_CORE
|
||||||
|
#else // CGAL_USE_QT not defined:
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
int main(int, char*)
|
int main(int, char*)
|
||||||
{
|
{
|
||||||
|
|
||||||
std::cout << "Sorry, this demo needs QT...";
|
std::cout << "Sorry, this demo needs QT ..." << std::endl;
|
||||||
std::cout << std::endl;
|
return (0);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif // CGAL_USE_QT
|
#endif // CGAL_USE_QT
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
//! \file examples/Arrangement_2/ex_conic_multiplicities.C
|
//! \file examples/Arrangement_2/ex_conic_multiplicities.C
|
||||||
// Handling intersection points with multiplicity between conic arcs.
|
// Handling intersection points with multiplicity between conic arcs.
|
||||||
|
#include <CGAL/basic.h>
|
||||||
|
|
||||||
#ifndef CGAL_USE_CORE
|
#ifndef CGAL_USE_CORE
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
int main ()
|
int main ()
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
//! \file examples/Arrangement_2/ex_conics.C
|
//! \file examples/Arrangement_2/ex_conics.C
|
||||||
// Constructing an arrangement of various conic arcs.
|
// Constructing an arrangement of various conic arcs.
|
||||||
|
#include <CGAL/basic.h>
|
||||||
|
|
||||||
#ifndef CGAL_USE_CORE
|
#ifndef CGAL_USE_CORE
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
int main ()
|
int main ()
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
//! \file examples/Arrangement_2/ex_rational_functions.C
|
//! \file examples/Arrangement_2/ex_rational_functions.C
|
||||||
// Constructing an arrangement of arcs of rational functions.
|
// Constructing an arrangement of arcs of rational functions.
|
||||||
|
#include <CGAL/basic.h>
|
||||||
|
|
||||||
#ifndef CGAL_USE_CORE
|
#ifndef CGAL_USE_CORE
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
int main ()
|
int main ()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue