opencv-uclibc-optional-long-double-support.patch

patch - jacmet -, 2011-12-11 09:54 pm

Download (1.2 kB)

 
opencv-2.3.1a/modules/flann/include/opencv2/flann/dist.h
40 40
#else
41 41
#include <stdint.h>
42 42
#endif
43
#include <features.h>
43 44

  
44 45
#include "defines.h"
45 46

  
......
59 60
template<>
60 61
inline double abs<double>(double x) { return fabs(x); }
61 62

  
63
/* uClibc configured without long double math doesn't provide fabsl */
64
#if !(defined(__UCLIBC__) && !defined(__UCLIBC_HAS_LONG_DOUBLE_MATH__))
62 65
template<>
63 66
inline long double abs<long double>(long double x) { return fabsl(x); }
64

  
67
#endif
65 68

  
66 69
template<typename T>
67 70
struct Accumulator { typedef T Type; };