Skip to content

Commit

Permalink
Fix Cygwin compatibility - Part II
Browse files Browse the repository at this point in the history
  • Loading branch information
stweil authored and amitdo committed Jun 19, 2016
1 parent b1c921b commit 65504c8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions training/pango_font_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,18 @@
#include "config_auto.h"
#endif

#if (defined MINGW) || (defined __CYGWIN__)
#if (defined __MINGW32__) || (defined __CYGWIN__)
// workaround for stdlib.h and putenv
#undef __STRICT_ANSI__
#endif

#if (defined __MINGW32__)
#include "strcasestr.h"
#endif // MINGW/Cygwin
#else
// needed for strcasestr in string.h
#define _GNU_SOURCE
#endif

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
Expand Down

0 comments on commit 65504c8

Please sign in to comment.