From 17f29d00797ab71d3b2ff0908dbb54fb79fe8ac9 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Mon, 23 Apr 2018 14:18:36 +0200 Subject: [PATCH] Fix linker regression for Visual Studio Commit cb77067f554683fcf972cff0b497e9c4bfd3d877 changed the declaration of null_script. An additional TESS_API is needed to satisfy the VS linker. Signed-off-by: Stefan Weil --- ccutil/unicharset.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccutil/unicharset.h b/ccutil/unicharset.h index 80ddfa6dab..6ff00a1700 100644 --- a/ccutil/unicharset.h +++ b/ccutil/unicharset.h @@ -1006,7 +1006,7 @@ class UNICHARSET { // The substitutions clean up text that should exists for rendering of // synthetic data, but not in the recognition set. static const char* kCleanupMaps[][2]; - static const char* null_script; + static TESS_API const char* null_script; UNICHAR_SLOT* unichars; UNICHARMAP ids;