Skip to content

Commit c09ed71

Browse files
committed
strcasestr needed on Cygwin too
See: https://groups.google.com/d/msgid/tesseract-ocr/55B12C3C.3010908%40vol.at ``` pango_font_info.cpp:223:46: error: 'strcasestr' was not declared in this scope is_fraktur_ = (strcasestr(family, "Fraktur") != NULL); ```
1 parent 27b8a5c commit c09ed71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

training/pango_font_info.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
#include "config_auto.h"
2323
#endif
2424

25-
#ifdef MINGW
25+
#if (defined MINGW) || (defined __CYGWIN__)
2626
// workaround for stdlib.h and putenv
2727
#undef __STRICT_ANSI__
2828
#include "strcasestr.h"
29-
#endif // MINGW
29+
#endif // MINGW/Cygwin
3030
#include <stdlib.h>
3131
#include <stdio.h>
3232
#include <string.h>

0 commit comments

Comments
 (0)