From 9f2336e5d42bba086e6835b12a38b0062bcddd1c Mon Sep 17 00:00:00 2001 From: Jared Duke Date: Tue, 20 Aug 2013 20:02:07 -0700 Subject: [PATCH] Fix Android compilation with STLport Satisfy STLport's runtime_error constructor with an explicit string argument. --- contrib/poly2tri/poly2tri/common/shapes.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/poly2tri/poly2tri/common/shapes.h b/contrib/poly2tri/poly2tri/common/shapes.h index d63f6a5be..4f691838f 100644 --- a/contrib/poly2tri/poly2tri/common/shapes.h +++ b/contrib/poly2tri/poly2tri/common/shapes.h @@ -38,6 +38,7 @@ #include #include #include +#include namespace p2t { @@ -137,8 +138,8 @@ struct Edge { p = &p2; } else if (p1.x == p2.x) { // Repeat points - // ASSIMP_CHANGE (aramis_acg) - throw std::runtime_error("repeat points"); + // ASSIMP_CHANGE (aramis_acg) + throw std::runtime_error(std::string("repeat points")); //assert(false); } }