Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2994)

Unified Diff: icu46/source/tools/toolutil/platform_xopen_source_extended.h

Issue 5516007: Check in the pristine copy of ICU 4.6... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « icu46/source/tools/toolutil/pkgitems.cpp ('k') | icu46/source/tools/toolutil/swapimpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: icu46/source/tools/toolutil/platform_xopen_source_extended.h
===================================================================
--- icu46/source/tools/toolutil/platform_xopen_source_extended.h (revision 0)
+++ icu46/source/tools/toolutil/platform_xopen_source_extended.h (revision 0)
@@ -0,0 +1,36 @@
+/*
+**********************************************************************
+* Copyright (c) 2009, International Business Machines
+* Corporation and others. All Rights Reserved.
+**********************************************************************
+*/
+#ifndef _PLATFORM_XOPEN_SOURCE_EXTENDED_H
+#define _PLATFORM_XOPEN_SOURCE_EXTENDED_H
+
+#include "unicode/utypes.h"
+
+/*
+ * z/OS needs this definition for timeval and to get usleep.
+ * We move this definition out of the various source files because
+ * there might be some platform issues when this is defined.
+ * See below.
+ */
+#if !defined(_XOPEN_SOURCE_EXTENDED)
+#define _XOPEN_SOURCE_EXTENDED 1
+#endif
+
+/*
+ * There is an issue with turning on _XOPEN_SOURCE_EXTENDED on certain platforms.
+ * A compatibility issue exists between turning on _XOPEN_SOURCE_EXTENDED and using
+ * standard C++ string class. As a result, standard C++ string class needs to be
+ * turned off for the follwing platforms:
+ * -AIX/VACPP
+ * -Solaris/GCC
+ */
+#if (defined(U_AIX) && !defined(__GNUC__)) || (defined(U_SOLARIS) && defined(__GNUC__))
+# if _XOPEN_SOURCE_EXTENDED && !defined(U_HAVE_STD_STRING)
+# define U_HAVE_STD_STRING 0
+# endif
+#endif
+
+#endif /* _PLATFORM_XOPEN_SOURCE_EXTENDED_H */
Property changes on: icu46/source/tools/toolutil/platform_xopen_source_extended.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « icu46/source/tools/toolutil/pkgitems.cpp ('k') | icu46/source/tools/toolutil/swapimpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698