summaryrefslogtreecommitdiffstats
path: root/WebKit/android/stlport/stl/_mbstate_t.h
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2010-03-03 13:40:16 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2010-03-03 13:40:16 -0800
commit381c572c6f77708151c42fbda8c8c1ed8e67c9c5 (patch)
treefb8d815ac789adf50d6dc0abf88ce7225f4a6801 /WebKit/android/stlport/stl/_mbstate_t.h
parentdd77efd5572bacfcd92fc815484a87297403a20d (diff)
parentf0073a99fda2bf1acd49fa66d0dd4272d09a1e61 (diff)
downloadexternal_webkit-381c572c6f77708151c42fbda8c8c1ed8e67c9c5.zip
external_webkit-381c572c6f77708151c42fbda8c8c1ed8e67c9c5.tar.gz
external_webkit-381c572c6f77708151c42fbda8c8c1ed8e67c9c5.tar.bz2
am f0073a99: Use STLPort instead of our stripped version. DO NOT MERGE.
Merge commit 'f0073a99fda2bf1acd49fa66d0dd4272d09a1e61' into eclair-mr2-plus-aosp * commit 'f0073a99fda2bf1acd49fa66d0dd4272d09a1e61': Use STLPort instead of our stripped version. DO NOT MERGE.
Diffstat (limited to 'WebKit/android/stlport/stl/_mbstate_t.h')
-rw-r--r--WebKit/android/stlport/stl/_mbstate_t.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/WebKit/android/stlport/stl/_mbstate_t.h b/WebKit/android/stlport/stl/_mbstate_t.h
new file mode 100644
index 0000000..4aa936f
--- /dev/null
+++ b/WebKit/android/stlport/stl/_mbstate_t.h
@@ -0,0 +1,39 @@
+/*
+ * Copyright (c) 1999
+ * Boris Fomitchev
+ *
+ * This material is provided "as is", with absolutely no warranty expressed
+ * or implied. Any use is at your own risk.
+ *
+ * Permission to use or copy this software for any purpose is hereby granted
+ * without fee, provided the above notices are retained on all copies.
+ * Permission to modify the code and to distribute modified code is granted,
+ * provided the above notices are retained, and a notice that the code was
+ * modified is included with the above copyright notice.
+ *
+ */
+
+#ifndef _STLP_INTERNAL_MBSTATE_T
+#define _STLP_INTERNAL_MBSTATE_T
+
+#if (defined (__OpenBSD__) || defined (__FreeBSD__)) && defined (__GNUC__) && !defined (_GLIBCPP_HAVE_MBSTATE_T)
+# define __mbstate_t_defined /* mbstate_t defined in native <cwchar>, so not defined in C! */
+#endif
+
+#if defined (_STLP_NO_NATIVE_MBSTATE_T) && !defined (_STLP_NO_MBSTATE_T) && !defined (_MBSTATE_T) && !defined (__mbstate_t_defined)
+# define _STLP_USE_OWN_MBSTATE_T
+# define _MBSTATE_T
+#endif
+
+#if defined (_STLP_USE_OWN_MBSTATE_T)
+typedef int mbstate_t;
+
+# if defined (__cplusplus)
+_STLP_BEGIN_NAMESPACE
+using ::mbstate_t;
+_STLP_END_NAMESPACE
+# endif
+
+#endif /* _STLP_USE_OWN_MBSTATE_T */
+
+#endif /* _STLP_INTERNAL_MBSTATE_T */