--- libstdc++-v3/ChangeLog 2007-07-19 10:29:35.000000000 -0400
+++ libstdc++-v3/ChangeLog 2008-08-27 13:12:49.000000000 -0400
@@ -1,3 +1,7 @@
+2008-08-27 Howard Hinnant <hhinnant@apple.com>
+
+ * Versioned libstdc++ <rdar://problem/6163061>
+
2007-07-19 Release Manager
* GCC 4.2.1 released.
--- libstdc++-v3/config/os/bsd/darwin/os_defines.h 2008-04-23 10:20:03.000000000 -0400
+++ libstdc++-v3/config/os/bsd/darwin/os_defines.h 2008-08-27 13:09:54.000000000 -0400
@@ -44,6 +44,15 @@
// -flat_namespace to work around the way that it doesn't.
#define _GLIBCXX_WEAK_DEFINITION __attribute__ ((weak))
+/* APPLE LOCAL begin version */
+
+#ifndef __GNUC_LIBSTD__
+#define __GNUC_LIBSTD__ 4
+#define __GNUC_LIBSTD_MINOR__ 2
+#endif
+
+/* APPLE LOCAL end version */
+
/* APPLE LOCAL begin keymgr */
#if defined(__APPLE__) && defined(__ppc__) && defined(PIC)
/* Copyright (C) 1989, 92-97, 1998, Free Software Foundation, Inc.
--- /dev/null 2008-08-27 14:30:14.000000000 -0400
+++ libstdc++-v3/testsuite/config/1.cc 2008-08-27 14:31:16.000000000 -0400
@@ -0,0 +1,13 @@
+// 2008-08-27 Howard Hinnant
+
+#include <utility>
+#include <testsuite_hooks.h>
+
+int main()
+{
+#ifndef __GNUC_LIBSTD__
+ return 1;
+#else
+ return 0;
+#endif
+}