Skip to content

Commit

Permalink
Fix windows build.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin committed Apr 1, 2019
1 parent 81fbd87 commit af7cc1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/textord/imagefind.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

#include "debugpixa.h"

#include <stdint.h>

struct Boxa;
struct Pix;
struct Pixa;
Expand Down
3 changes: 3 additions & 0 deletions sw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ void build(Solution &s)
libtesseract.Public += "org.sw.demo.libarchive.libarchive"_dep;

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

libtesseract.Variables["TESSERACT_MAJOR_VERSION"] = libtesseract.Variables["PACKAGE_MAJOR_VERSION"];
libtesseract.Variables["TESSERACT_MINOR_VERSION"] = libtesseract.Variables["PACKAGE_MINOR_VERSION"];
Expand Down

0 comments on commit af7cc1c

Please sign in to comment.