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>
|
||||
|
||||
#ifdef CGAL_USE_QT
|
||||
#ifdef CGAL_USE_CORE
|
||||
|
||||
#include "MyWindow.h"
|
||||
#include "forms.h"
|
||||
|
|
@ -435,20 +436,27 @@ int main(int argc, char **argv)
|
|||
return app.exec();
|
||||
}
|
||||
|
||||
#else
|
||||
#else // CGAL_USE_CORE not defined:
|
||||
|
||||
#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*)
|
||||
{
|
||||
|
||||
std::cout << "Sorry, this demo needs QT...";
|
||||
std::cout << std::endl;
|
||||
|
||||
return 0;
|
||||
std::cout << "Sorry, this demo needs QT ..." << std::endl;
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endif // CGAL_USE_QT
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
//! \file examples/Arrangement_2/ex_conic_multiplicities.C
|
||||
// Handling intersection points with multiplicity between conic arcs.
|
||||
#include <CGAL/basic.h>
|
||||
|
||||
#ifndef CGAL_USE_CORE
|
||||
#include <iostream>
|
||||
int main ()
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
//! \file examples/Arrangement_2/ex_conics.C
|
||||
// Constructing an arrangement of various conic arcs.
|
||||
#include <CGAL/basic.h>
|
||||
|
||||
#ifndef CGAL_USE_CORE
|
||||
#include <iostream>
|
||||
int main ()
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
//! \file examples/Arrangement_2/ex_rational_functions.C
|
||||
// Constructing an arrangement of arcs of rational functions.
|
||||
#include <CGAL/basic.h>
|
||||
|
||||
#ifndef CGAL_USE_CORE
|
||||
#include <iostream>
|
||||
int main ()
|
||||
|
|
|
|||
Loading…
Reference in New Issue