aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-02-04 22:43:52 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-02-04 22:43:52 +0000
commit3dfd20069c351038a701eb161235086e747f59d3 (patch)
treedde5c527dbefa828a63aaa9461cc0bc1f930ca24
parent7f8bc0c685575320389768561d861a2d16733d58 (diff)
downloadpaludis-3dfd20069c351038a701eb161235086e747f59d3.tar.gz
paludis-3dfd20069c351038a701eb161235086e747f59d3.tar.xz
Fix the --version libstdc++ display. We have to use some slightly icky macro voodoo because g++4 defines __GLIBCXX__ as nothing.
-rw-r--r--src/paludis.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/paludis.cc b/src/paludis.cc
index 11d5b02..2ed8def 100644
--- a/src/paludis.cc
+++ b/src/paludis.cc
@@ -139,9 +139,9 @@ main(int argc, char *argv[])
cout << "LIBEXECDIR: " << LIBEXECDIR << endl;
cout << "stdlib: "
#if defined(__GLIBCXX__)
- << "GNU libstdc++"
-#elif defined(__GLIBCPP__)
- << "GNU libstdc++" << __GLIBCPP__
+# define XSTRINGIFY(x) #x
+# define STRINGIFY(x) XSTRINGIFY(x)
+ << "GNU libstdc++ " << STRINGIFY(__GLIBCXX__)
#endif
<< endl;