]> git.tdb.fi Git - libs/core.git/blobdiff - source/debug/demangle.cpp
Style updates
[libs/core.git] / source / debug / demangle.cpp
index 5c348514fd9bffa57ec0d7cbf6acb4539d198880..053fd52bc4a867a9a1f8d3f63641fdf4962d0f4b 100644 (file)
@@ -6,7 +6,9 @@ Distributed under the LGPL
 */
 
 #include <cstdlib>
+#ifdef __GNUC__
 #include <cxxabi.h>
+#endif
 #include "demangle.h"
 
 using namespace std;
@@ -18,13 +20,13 @@ string demangle(const string &sym)
 {
 #ifdef __GNUC__
        int status;
-       char *dm=abi::__cxa_demangle(sym.c_str(), 0, 0, &status);
+       char *dm = abi::__cxa_demangle(sym.c_str(), 0, 0, &status);
        
        string result;
        if(status==0)
-               result=dm;
+               result = dm;
        else
-               result=sym;
+               result = sym;
        
        free(dm);