Skip to content

Commit

Permalink
strcasestr needed on Cygwin too
Browse files Browse the repository at this point in the history
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);
```
  • Loading branch information
jimregan committed Jul 23, 2015
1 parent 27b8a5c commit c09ed71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions training/pango_font_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
#include "config_auto.h"
#endif

#ifdef MINGW
#if (defined MINGW) || (defined __CYGWIN__)
// workaround for stdlib.h and putenv
#undef __STRICT_ANSI__
#include "strcasestr.h"
#endif // MINGW
#endif // MINGW/Cygwin
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
Expand Down

0 comments on commit c09ed71

Please sign in to comment.