mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-03 17:29:04 +08:00
Remove unneeded definition for NULL
NULL is already defined in stddef.h, so a local definition is not be needed. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
8daef71a83
commit
ac6b17e918
@ -140,10 +140,6 @@ typedef unsigned char BOOL8;
|
|||||||
#define FALSE 0
|
#define FALSE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef NULL
|
|
||||||
#define NULL 0L
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Return true if x is within tolerance of y
|
// Return true if x is within tolerance of y
|
||||||
template<class T> bool NearlyEqual(T x, T y, T tolerance) {
|
template<class T> bool NearlyEqual(T x, T y, T tolerance) {
|
||||||
T diff = x - y;
|
T diff = x - y;
|
||||||
|
Loading…
Reference in New Issue
Block a user