Changeset 1489


Ignore:
Timestamp:
08/12/08 11:00:40 (6 years ago)
Author:
jdsiiro
Message:

Updating EXECINFO and CXXABI guards to match autoconf changes in r1484

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utilib/trunk/src/core/utilib/exception_mngr.cpp

    r1483 r1489  
    2121#include <utilib/CommonIO.h> 
    2222#endif 
    23 #ifdef UTILIB_HAVE_EXECINFO 
     23#ifdef UTILIB_HAVE_EXECINFO_H 
    2424#include <execinfo.h> 
    2525#endif 
    26 #ifdef UTILIB_HAVE_CXXABI 
     26#ifdef UTILIB_HAVE_CXXABI_H 
    2727#include <cxxabi.h> 
    2828#endif 
     
    4343std::string demangledName(const char* mangled) 
    4444{ 
    45 #if defined(UTILIB_HAVE_CXXABI) 
     45#if defined(UTILIB_HAVE_CXXABI_H) 
    4646   int stat; 
    4747   char *demangled = abi::__cxa_demangle(mangled,0,0,&stat); 
     
    119119void generate_stack_trace(std::ostringstream &os) 
    120120{ 
    121 #ifdef UTILIB_HAVE_EXECINFO 
     121#ifdef UTILIB_HAVE_EXECINFO_H 
    122122   void * array[25]; 
    123123   int nSize = backtrace(array, 25); 
     
    151151         << endl; 
    152152#else 
    153    os << "[stack trace disabled: compile with UTILIB_HAVE_EXECINFO]" << endl; 
     153   os << "[stack trace disabled: compile with UTILIB_HAVE_EXECINFO_H]" << endl; 
    154154#endif 
    155155} 
Note: See TracChangeset for help on using the changeset viewer.