Skip to content

Commit af7cc1c

Browse files
committed
Fix windows build.
1 parent 81fbd87 commit af7cc1c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/textord/imagefind.h

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
#include "debugpixa.h"
2424

25+
#include <stdint.h>
26+
2527
struct Boxa;
2628
struct Pix;
2729
struct Pixa;

sw.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ void build(Solution &s)
7878
libtesseract.Public += "org.sw.demo.libarchive.libarchive"_dep;
7979

8080
if (s.Settings.TargetOS.Type == OSType::Windows)
81+
{
8182
libtesseract.Public += "ws2_32.lib"_l;
83+
libtesseract.Protected += "NOMINMAX"_def;
84+
}
8285

8386
libtesseract.Variables["TESSERACT_MAJOR_VERSION"] = libtesseract.Variables["PACKAGE_MAJOR_VERSION"];
8487
libtesseract.Variables["TESSERACT_MINOR_VERSION"] = libtesseract.Variables["PACKAGE_MINOR_VERSION"];

0 commit comments

Comments
 (0)