From 5b6def01216466cb5d8745097456d50e4b58ec8b Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Thu, 16 Oct 2008 21:44:58 +0000 Subject: [PATCH] linux #ifdef-ery git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3076 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/pch.h | 1 - source/src/tools.cpp | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/source/src/pch.h b/source/src/pch.h index b5c44cfd..a33c2c08 100644 --- a/source/src/pch.h +++ b/source/src/pch.h @@ -17,7 +17,6 @@ #include #ifdef __GNUC__ #include -#include #include #else #include diff --git a/source/src/tools.cpp b/source/src/tools.cpp index a2becfc6..46a133ea 100644 --- a/source/src/tools.cpp +++ b/source/src/tools.cpp @@ -329,7 +329,9 @@ void stackdumper(unsigned int type, EXCEPTION_POINTERS *ep) } fatal(out); } -#elif !defined(WIN32) && defined(__GNUC__) +#elif defined(linux) || defined(__linux) || defined(__linux__) + +#include // stack dumping on linux, inspired by Sachin Agrawal's sample code