Update of /cvsroot/simspark/simspark/spark/zeitgeist
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv13064
Modified Files:
Tag: WIN32
core.cpp
Log Message:
fixes to compile on a Mac
- execinfo.h should be checked for in configure
- the CatchSignal Method seems pretty linux-specific, so I changed the conditional compile to just that
Index: core.cpp
===================================================================
RCS file: /cvsroot/simspark/simspark/spark/zeitgeist/core.cpp,v
retrieving revision 1.2.2.1
retrieving revision 1.2.2.2
diff -C2 -d -r1.2.2.1 -r1.2.2.2
*** core.cpp 9 Feb 2007 16:15:33 -0000 1.2.2.1
--- core.cpp 12 Feb 2007 23:52:04 -0000 1.2.2.2
***************
*** 39,43 ****
#include <sstream>
! #ifndef WIN32
#include <execinfo.h>
#endif
--- 39,47 ----
#include <sstream>
! #ifdef HAVE_CONFIG_H
! #include <config.h>
! #endif
!
! #ifdef HAVE_EXECINFO_H
#include <execinfo.h>
#endif
***************
*** 159,167 ****
void Core::CatchSignal(int sig_num)
{
! #ifndef WIN32
if (sig_num != SIGSEGV)
! {
! return;
! }
cerr << "(Core) caught signal " << sig_num << endl;
--- 163,171 ----
void Core::CatchSignal(int sig_num)
{
! #ifdef __linux__
if (sig_num != SIGSEGV)
! {
! return;
! }
cerr << "(Core) caught signal " << sig_num << endl;
|