mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-10331 mingw fixes
X-SVN-Rev: 34185
This commit is contained in:
parent
f2844dc9e1
commit
f51f2f06d8
2 changed files with 19 additions and 2 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue