ports/cad/meshlab/files/patch-vcglib-vcg-math_base.h
Pietro Cerutti 4532f38559 - Fix run-time segmentation fault [1]
- Convert to new LIB_DEPENDS format
- Fix build with clang (no longer depends on GCC)
- Statically link against own library libcommon.a, to avoid
  installing a library with such a generic name as libcommon.so

PR:		183474 [1]
Submitted by:	Pierre Smars <smars@yuntech.edu.tw> [1]
2013-10-31 17:19:27 +00:00

12 lines
543 B
C

--- ../../vcglib/vcg/math/base.h.orig 2012-04-05 11:04:15.000000000 +0200
+++ ../../vcglib/vcg/math/base.h 2013-10-31 11:09:34.000000000 +0100
@@ -94,7 +94,9 @@
/// static_assert: implemented as a macro for "assert", but it is separated for clarity.
/// Should be used for checking integrity constraints that can be tested at complile time,
/// as the ones involving templated constants in templated classes.
+#ifndef static_assert
#define static_assert assert
+#endif
#ifdef __BORLANDC__
float sqrtf (float v) {return sqrt(v);}