]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/io/ufile.c
ICU-511.25.tar.gz
[apple/icu.git] / icuSources / io / ufile.c
index e49d5b95dc504bbac3d99b0bc13b8691e18da2af..820071f1bcfc7a60d0286b0aa550d7f2ecf934a4 100644 (file)
@@ -1,7 +1,7 @@
 /*
 ******************************************************************************
 *
-*   Copyright (C) 1998-2011, International Business Machines
+*   Copyright (C) 1998-2013, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 *
 ******************************************************************************
 */
 
 /*
- * Defines _XOPEN_SOURCE for access to POSIX functions.
- * Must be before any other #includes.
+ * fileno is not declared when building with GCC in strict mode.
  */
-#include "uposixdefs.h"
+#if defined(__GNUC__) && defined(__STRICT_ANSI__)
+#undef __STRICT_ANSI__
+#endif
 
 #include "locmap.h"
 #include "unicode/ustdio.h"
@@ -304,4 +305,10 @@ u_fgetConverter(UFILE *file)
 {
     return file->fConverter;
 }
+#if !UCONFIG_NO_FORMATTING
+U_CAPI const UNumberFormat* U_EXPORT2 u_fgetNumberFormat(UFILE *file)
+{
+    return u_locbund_getNumberFormat(&file->str.fBundle, UNUM_DECIMAL);
+}
+#endif