Skip to content

Commit 8103d17

Browse files
committed
use _strdup instead of strdup in MSVC
1 parent a033261 commit 8103d17

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/training/stringrenderer.h

+4
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
struct Boxa;
4242
struct Pix;
4343

44+
#ifdef _MSC_VER
45+
# define strdup(s) _strdup(s)
46+
#endif
47+
4448
namespace tesseract {
4549

4650
class BoxChar;

0 commit comments

Comments
 (0)