ports/graphics/blender/files/patch-extern_carve_lib_triangulator.cpp
Marcus von Appen e08dba80e2 - Update to version 2.69
- Add LICENSE
- Switch to new LIB_DEPENDS format
- Enabling staging support
- Simplify OPTION knob handling
- Unbreak the build on 8.x, 10.x and CURRENT after the update of
  graphics/opencv and graphics/openshadinglanguage, which require
  llvm3.3

Supported by:	tijl@, Shane Ambler <FreeBSD@ShaneWare.Biz>
2013-11-15 16:58:02 +00:00

14 lines
549 B
C++

--- extern/carve/lib/triangulator.cpp.orig 2012-01-30 09:45:12.000000000 +0100
+++ extern/carve/lib/triangulator.cpp 2013-11-13 21:17:16.000000000 +0100
@@ -122,8 +122,10 @@
std::vector<vertex_info *> queue;
void checkheap() {
-#ifdef __GNUC__
+#if defined(__GNUC__) && !defined(__clang__)
CARVE_ASSERT(std::__is_heap(queue.begin(), queue.end(), vertex_info_ordering()));
+#elif defined(__clang__) && defined(_LIBCPP_VERSION)
+ CARVE_ASSERT(std::is_heap(queue.begin(), queue.end(), vertex_info_ordering()));
#endif
}