cygwin: apply cygwin compilation tweaks. thanks ir0nh34d.

This commit is contained in:
Daniel Marjamäki 2014-03-19 21:20:30 +01:00
parent fe1b46c174
commit e48dfb0e6a
2 changed files with 5 additions and 1 deletions

View File

@ -159,6 +159,10 @@ bool FileLister::fileExists(const std::string &path)
////// This code is POSIX-style systems ///////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
#if defined(__CYGWIN__)
#undef __STRICT_ANSI__
#endif
#include <glob.h>
#include <unistd.h>
#include <stdlib.h>

View File

@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#if defined(__GNUC__) && defined(_WIN32)
#if defined(__GNUC__) && (defined(_WIN32) || defined(__CYGWIN__))
#undef __STRICT_ANSI__
#endif
#include <algorithm>