Skip to content

Commit

Permalink
restore changes lost while rebasing...
Browse files Browse the repository at this point in the history
  • Loading branch information
sloriot committed Mar 23, 2024
1 parent f4b13b4 commit 88f44a5
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
23 changes: 23 additions & 0 deletions Polygon_repair/test/Polygon_repair/draw_test_polygons.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
#include <iostream>
#include <fstream>
#include <sstream>

// work around for old compilers (Apple clang < 11 for example)
#define HAS_FILESYSTEM 1
#if defined(__has_include)
#if !__has_include(<filesystem>)
#undef HAS_FILESYSTEM
#define HAS_FILESYSTEM 0
#endif
#endif


#if HAS_FILESYSTEM

#include <filesystem>

#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
Expand Down Expand Up @@ -52,3 +65,13 @@ int main() {

return 0;
}

#else

int main()
{
std::cout << "Warning: filesystem feature is not present on the system, nothing will be tested\n";
return 0;
}

#endif
23 changes: 23 additions & 0 deletions Polygon_repair/test/Polygon_repair/exact_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@
#include <iostream>
#include <fstream>
#include <sstream>

// work around for old compilers (Apple clang < 11 for example)
#define HAS_FILESYSTEM 1
#if defined(__has_include)
#if !__has_include(<filesystem>)
#undef HAS_FILESYSTEM
#define HAS_FILESYSTEM 0
#endif
#endif


#if HAS_FILESYSTEM

#include <filesystem>

#include <CGAL/Exact_predicates_exact_constructions_kernel.h>
Expand Down Expand Up @@ -50,3 +63,13 @@ int main() {

return 0;
}

#else

int main()
{
std::cout << "Warning: filesystem feature is not present on the system, nothing will be tested\n";
return 0;
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

// work around for old compilers (Apple clang < 11 for example)
#define HAS_FILESYSTEM 1
#if (__has_include)
#if defined(__has_include)
#if !__has_include(<filesystem>)
#undef HAS_FILESYSTEM
#define HAS_FILESYSTEM 0
Expand Down

0 comments on commit 88f44a5

Please sign in to comment.