projects
/
icu
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ff013c
)
ICU-12993 undef __STRICT_ANSI__ on some platforms.
author
Andy Heninger
<andy.heninger@gmail.com>
Sun, 19 Feb 2017 21:58:30 +0000
(21:58 +0000)
committer
Andy Heninger
<andy.heninger@gmail.com>
Sun, 19 Feb 2017 21:58:30 +0000
(21:58 +0000)
X-SVN-Rev: 39692
icu4c/source/io/ufile.cpp
patch
|
blob
|
history
diff --git
a/icu4c/source/io/ufile.cpp
b/icu4c/source/io/ufile.cpp
index 756faa5f734b2073f30ecf04ffbb86ba46666832..6cbb897555d3c73cc72b04c9bd19273073bc417b 100644
(file)
--- a/
icu4c/source/io/ufile.cpp
+++ b/
icu4c/source/io/ufile.cpp
@@
-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"