ICU-12993 undef __STRICT_ANSI__ on some platforms.

X-SVN-Rev: 39692
This commit is contained in:
Andy Heninger 2017-02-19 21:58:30 +00:00
parent 4ff013c080
commit a1cb685865

View File

@ -20,6 +20,14 @@
******************************************************************************
*/
#include "unicode/platform.h"
#if defined(__GNUC__) && !defined(__clang__) && defined(__STRICT_ANSI__)
// g++, fileno isn't defined if __STRICT_ANSI__ is defined.
// clang fails to compile the <string> header unless __STRICT_ANSI__ is defined.
// __GNUC__ is set by both gcc and clang.
#undef __STRICT_ANSI__
#endif
#include "locmap.h"
#include "unicode/ustdio.h"