Skip to content
New issue

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

For me code was not working, having tons of error in liblept #7

Open
anshul1912 opened this issue Aug 14, 2015 · 1 comment
Open

For me code was not working, having tons of error in liblept #7

anshul1912 opened this issue Aug 14, 2015 · 1 comment

Comments

@anshul1912
Copy link

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

 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
@anshul1912
Copy link
Author

above patch solves it though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant