ICU-10331 mingw fixes

X-SVN-Rev: 34185
This commit is contained in:
Steven R. Loomis 2013-09-04 06:59:04 +00:00
parent f2844dc9e1
commit f51f2f06d8
2 changed files with 19 additions and 2 deletions

View file

@ -1,9 +1,16 @@
/******************************************************************************
* Copyright (C) 2009-2011, International Business Machines
* Copyright (C) 2009-2013, International Business Machines
* Corporation and others. All Rights Reserved.
*******************************************************************************
*/
#if U_PLATFORM == U_PF_MINGW
// *cough* - for struct stat
#ifdef __STRICT_ANSI__
#undef __STRICT_ANSI__
#endif
#endif
#include "filetools.h"
#include "filestrm.h"
#include "cstring.h"

View file

@ -1,7 +1,7 @@
/*
*******************************************************************************
*
* Copyright (C) 1999-2011, International Business Machines
* Copyright (C) 1999-2013, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
@ -18,6 +18,13 @@
* This file contains utility functions for ICU tools like genccode.
*/
#if U_PLATFORM == U_PF_MINGW
// *cough* - for struct stat
#ifdef __STRICT_ANSI__
#undef __STRICT_ANSI__
#endif
#endif
#include <stdio.h>
#include <sys/stat.h>
#include "unicode/utypes.h"
@ -33,6 +40,9 @@
# define NOSERVICE
# define NOIME
# define NOMCX
# if U_PLATFORM == U_PF_MINGW
# define __NO_MINGW_LFS /* gets around missing 'off64_t' */
# endif
# include <windows.h>
# include <direct.h>
#else