Skip to content

Commit 65504c8

Browse files
stweilamitdo
authored andcommitted
Fix Cygwin compatibility - Part II
1 parent b1c921b commit 65504c8

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

training/pango_font_info.cpp

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

25-
#if (defined MINGW) || (defined __CYGWIN__)
25+
#if (defined __MINGW32__) || (defined __CYGWIN__)
2626
// workaround for stdlib.h and putenv
2727
#undef __STRICT_ANSI__
28+
#endif
29+
30+
#if (defined __MINGW32__)
2831
#include "strcasestr.h"
29-
#endif // MINGW/Cygwin
32+
#else
33+
// needed for strcasestr in string.h
34+
#define _GNU_SOURCE
35+
#endif
36+
3037
#include <stdlib.h>
3138
#include <stdio.h>
3239
#include <string.h>

0 commit comments

Comments
 (0)