]> granicus.if.org Git - icu/commitdiff
ICU-9718 Disable strict mode when building ufile with gcc
authorMichael Ow <mow@svn.icu-project.org>
Tue, 5 Feb 2013 22:10:40 +0000 (22:10 +0000)
committerMichael Ow <mow@svn.icu-project.org>
Tue, 5 Feb 2013 22:10:40 +0000 (22:10 +0000)
X-SVN-Rev: 33124

icu4c/source/io/ufile.c

index 1416bc7e0fac2bff40a40a95677af199c90c947b..820071f1bcfc7a60d0286b0aa550d7f2ecf934a4 100644 (file)
 ******************************************************************************
 */
 
-#include "uposixdefs.h"
+/*
+ * fileno is not declared when building with GCC in strict mode.
+ */
+#if defined(__GNUC__) && defined(__STRICT_ANSI__)
+#undef __STRICT_ANSI__
+#endif
+
 #include "locmap.h"
 #include "unicode/ustdio.h"
 #include "ufile.h"