Skip to content

Commit

Permalink
Update for latest leptonica (1.61)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Langley committed Apr 29, 2009
1 parent a13b7e8 commit eee67bd
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LEPTONICA_VERSION
@@ -1 +1 @@
1.58
1.61
2 changes: 1 addition & 1 deletion Makefile
@@ -1,5 +1,5 @@
CC=g++
LEPTONICA=../leptonlib-1.58
LEPTONICA=../leptonlib-1.61
# For example, a fink MacOSX install:
# EXTRA=-I/sw/include/ -I/sw/include/libpng -I/sw/include/libjpeg -L/sw/lib
CFLAGS=-I${LEPTONICA}/src -Wall -I/usr/include -L/usr/lib -O3 ${EXTRA}
Expand Down
4 changes: 3 additions & 1 deletion jbig2.cc
Expand Up @@ -21,6 +21,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <string.h>
#include <unistd.h>

#include <allheaders.h>
#include <pix.h>
Expand Down Expand Up @@ -284,7 +286,7 @@ main(int argc, char **argv) {
return 1;
}

if (threshold > 0.9 | threshold < 0.4) {
if (threshold > 0.9 || threshold < 0.4) {
fprintf(stderr, "Invalid value for threshold\n");
fprintf(stderr, "(must be between 0.4 and 0.9)\n");
return 10;
Expand Down
2 changes: 2 additions & 0 deletions jbig2arith.cc
Expand Up @@ -16,8 +16,10 @@
// limitations under the License.

#include "jbig2arith.h"

#include <string.h>
#include <stdio.h>
#include <stdlib.h>

#define u64 uint64_t
#define u32 uint32_t
Expand Down
3 changes: 3 additions & 0 deletions jbig2enc.cc
Expand Up @@ -19,6 +19,9 @@
#include <vector>
#include <algorithm>

#include <stdio.h>
#include <string.h>

#include <allheaders.h>
#include <pix.h>

Expand Down
2 changes: 2 additions & 0 deletions jbig2sym.cc
Expand Up @@ -26,6 +26,8 @@
#define restrict __restrict__
#endif

#include <stdio.h>

#include <allheaders.h>
#include <pix.h>

Expand Down

0 comments on commit eee67bd

Please sign in to comment.