openbsd-ports/graphics/opencv/patches/patch-modules_ml_src_gbt_cpp
espie 258e70c5fc pch don't really work
in fact, it causes an ICE while building the port on amd64,
so patch it out, and bump.
2011-07-16 22:43:57 +00:00

13 lines
441 B
Plaintext

$OpenBSD: patch-modules_ml_src_gbt_cpp,v 1.2 2011/07/16 22:43:57 espie Exp $
--- modules/ml/src/gbt.cpp.orig Sun Dec 5 04:35:25 2010
+++ modules/ml/src/gbt.cpp Sat Jul 16 23:20:10 2011
@@ -11,7 +11,7 @@ using namespace std;
#define CV_CMP_FLOAT(a,b) ((a) < (b))
static CV_IMPLEMENT_QSORT_EX( icvSortFloat, float, CV_CMP_FLOAT, float)
-#if ANDROID
+#if defined(ANDROID) || defined(__OpenBSD__)
#define expl(x) exp(x)
#endif