diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2009-11-10 12:32:48 -0330 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2009-11-10 12:32:48 -0330 |
commit | 03e9a53d5d2cde4b5c80c8f6258f31cc1f82d222 (patch) | |
tree | 927f71cf3fb31c18ff759f70813b31a011449fd4 /cpp/src/IceUtil/Exception.cpp | |
parent | Minor fix to unicode test related to bug 3962 (diff) | |
download | ice-03e9a53d5d2cde4b5c80c8f6258f31cc1f82d222.tar.bz2 ice-03e9a53d5d2cde4b5c80c8f6258f31cc1f82d222.tar.xz ice-03e9a53d5d2cde4b5c80c8f6258f31cc1f82d222.zip |
Make GCC supported compiler on Sun
Diffstat (limited to 'cpp/src/IceUtil/Exception.cpp')
-rw-r--r-- | cpp/src/IceUtil/Exception.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/IceUtil/Exception.cpp b/cpp/src/IceUtil/Exception.cpp index f3e2cc9b750..6ce81a17c23 100644 --- a/cpp/src/IceUtil/Exception.cpp +++ b/cpp/src/IceUtil/Exception.cpp @@ -14,7 +14,7 @@ #include <ostream> #include <cstdlib> -#ifdef __GNUC__ +#if defined(__GNUC__) && !defined(__sun) # include <execinfo.h> # include <cxxabi.h> #endif @@ -52,7 +52,7 @@ public: Init init; -#ifdef __GNUC__ +#if defined(__GNUC__) && !defined(__sun) string getStackTrace() { @@ -183,7 +183,7 @@ getStackTrace() IceUtil::Exception::Exception() : _file(0), _line(0) -#ifdef __GNUC__ +#if defined(__GNUC__) && !defined(__sun) , _stackTrace(getStackTrace()) #endif { @@ -192,7 +192,7 @@ IceUtil::Exception::Exception() : IceUtil::Exception::Exception(const char* file, int line) : _file(file), _line(line) -#ifdef __GNUC__ +#if defined(__GNUC__) && !defined(__sun) , _stackTrace(getStackTrace()) #endif { |