Open anshul1912 opened 9 years ago
From 96c514e3732751b0fce84feb2a1f6bd85e93535d Mon Sep 17 00:00:00 2001 From: Anshul Maheshwari er.anshul.maheshwari@gmail.com Date: Fri, 14 Aug 2015 17:17:58 +0530 Subject: [PATCH] Changed liblept to get compiled
liblept/src/boxfunc1.c | 3 ++- liblept/src/utils.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/liblept/src/boxfunc1.c b/liblept/src/boxfunc1.c index 9b4705d..08a229d 100644 --- a/liblept/src/boxfunc1.c +++ b/liblept/src/boxfunc1.c @@ -82,12 +82,13 @@ boxContains(BOX *box1, BOX *box2, l_int32 *presult) { + l_int32 x1, y1, w1, h1, x2, y2, w2, h2; PROCNAME("boxContains"); if (!box1 || !box2) return ERROR_INT("box1 and box2 not both defined", procName, 1); -l_int32 x1, y1, w1, h1, x2, y2, w2, h2; + boxGetGeometry(box1, &x1, &y1, &w1, &h1); boxGetGeometry(box2, &x2, &y2, &w2, &h2); diff --git a/liblept/src/utils.c b/liblept/src/utils.c index f53694c..1b9aa7d 100644 --- a/liblept/src/utils.c +++ b/liblept/src/utils.c @@ -2092,12 +2092,14 @@ char *realdir; *pexists = 1; } #else /* _WIN32 */ + { l_uint32 attributes; attributes = GetFileAttributes(realdir); if (attributes != INVALID_FILE_ATTRIBUTES && (attributes & FILE_ATTRIBUTE_DIRECTORY)) { *pexists = 1; } + } #endif /* _WIN32 */ FREE(realdir); -- 1.9.5.github.0
above patch solves it though
From 96c514e3732751b0fce84feb2a1f6bd85e93535d Mon Sep 17 00:00:00 2001 From: Anshul Maheshwari er.anshul.maheshwari@gmail.com Date: Fri, 14 Aug 2015 17:17:58 +0530 Subject: [PATCH] Changed liblept to get compiled
Signed-off-by: Anshul Maheshwari er.anshul.maheshwari@gmail.com