diff packages/language/cxx/ustl/current/src/uexception.cpp @ 3152:4885e0722884

* include/*: * src/*: * tests/*: * HISTORY: * LICENSE: Updated to uSTL 1.6 sources.
author sergeig
date Wed, 04 Apr 2012 18:51:57 +0000
parents 9e1cb7863bef
children
line wrap: on
line diff
--- a/packages/language/cxx/ustl/current/src/uexception.cpp
+++ b/packages/language/cxx/ustl/current/src/uexception.cpp
@@ -1,6 +1,6 @@
 // This file is part of the uSTL library, an STL implementation.
 //
-// Copyright (c) 2005-2009 by Mike Sharov <msharov@users.sourceforge.net>
+// Copyright (c) 2005 by Mike Sharov <msharov@users.sourceforge.net>
 // This file is free software, distributed under the MIT License.
 
 #include "uexception.h"
@@ -10,8 +10,9 @@
 #include "strmsize.h"
 #include "uspecial.h"
 #include <errno.h>
+
 #if HAVE_CXXABI_H && WANT_NAME_DEMANGLING
-    #include <cxxabi.h>
+extern "C" char* __cxa_demangle (const char* mangled_name, char* output_buffer, size_t* length, int* status);
 #endif
 
 namespace ustl {
@@ -212,7 +213,7 @@ const char* demangle_type_name (char* bu
     char dmname [256];
     size_t sz = VectorSize(dmname);
     int bFailed;
-    abi::__cxa_demangle (buf, dmname, &sz, &bFailed);
+    __cxa_demangle (buf, dmname, &sz, &bFailed);
     if (!bFailed) {
 	bl = min (strlen (dmname), bufSize - 1);
 	memcpy (buf, dmname, bl);