We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
above patch solves it though
Sorry, something went wrong.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: