tesseract/tesseract-1.04-compilefix.patch
2007-06-16 13:50:50 +00:00

61 lines
2.3 KiB
Diff

--- ./cutil/globals.h.karlik 2006-06-17 00:17:07.000000000 +0200
+++ ./cutil/globals.h 2006-12-27 16:20:43.000000000 +0100
@@ -43,8 +43,13 @@
extern int debugs[MAXPROC]; /*debug flags */
extern int plots[MAXPROC]; /*plot flags */
extern int corners[4]; /*corners of scan window */
-extern int optind; /*option index */
-extern char *optarg; /*option argument */
+//extern int optind; /*option index */
+//extern char *optarg; /*option argument */
+#ifndef _GETOPT_H
+#define _GETOPT_H 1
+extern int optind;
+extern char *optarg;
+#endif
/*image file name */
extern char imagefile[FILENAMESIZE];
/* main directory */
--- ./cutil/tordvars.h.karlik 2006-06-17 00:17:07.000000000 +0200
+++ ./cutil/tordvars.h 2006-12-27 12:54:56.000000000 +0100
@@ -46,7 +46,10 @@
extern int write_raw_output; /* Text before context */
extern int write_output; /* Text file output */
//extern "C" { extern int display_ratings; } /* Show the ratings */
-extern int display_ratings; /* Show the ratings */
+#ifndef tescik
+#define tescik
+extern int display_ratings; /* Show the ratings */
+#endif
extern int show_bold; /* Use bold text */
extern int display_text; /* Show word text */
extern int display_blocks; /* Show word as boxes */
--- ./ccmain/tfacep.h.karlik 2006-06-17 00:17:03.000000000 +0200
+++ ./ccmain/tfacep.h 2006-12-27 12:54:53.000000000 +0100
@@ -103,7 +103,10 @@
//extern int enable_assoc;
//extern int chop_enable;
//extern int permute_only_top;
+ #ifndef tescik
+#define tescik
extern int display_ratings;
+#endif
};
--- ./ccmain/control.cpp 2007-05-16 02:55:59.000000000 +0200
+++ ./ccmain/control.cpp 2007-05-23 16:40:17.000000000 +0200
@@ -148,7 +148,11 @@
EXTERN double_VAR (test_pt_y, 99999.99, "ycoord");
extern int MatcherDebugLevel;
-extern "C" { extern int display_ratings; }
+#ifndef tescik
+#define tescik
+ extern int display_ratings;
+#endif
+//extern "C" { extern int display_ratings; }
extern int number_debug;
extern int adjust_debug;
/*