18 #ifndef TESSERACT_CCUTIL_HOST_H_
19 #define TESSERACT_CCUTIL_HOST_H_
28 # ifndef WIN32_LEAN_AND_MEAN
29 # define WIN32_LEAN_AND_MEAN
37 template<
class T>
bool NearlyEqual(T x, T y, T tolerance) {
39 return diff <= tolerance && -diff <= tolerance;
42 #endif // TESSERACT_CCUTIL_HOST_H_