From 4f90cee0b5a811eb4b9088122183a48b93e4690f Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Sat, 10 Oct 2009 10:05:04 +0200 Subject: Improve conditional #includes in crash-u.cc. --- crawl-ref/source/crash-u.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/crash-u.cc') diff --git a/crawl-ref/source/crash-u.cc b/crawl-ref/source/crash-u.cc index ea3c63b8ce..1f258fa8e0 100644 --- a/crawl-ref/source/crash-u.cc +++ b/crawl-ref/source/crash-u.cc @@ -11,10 +11,12 @@ REVISION("$Rev$"); #include #endif +#if (defined(UNIX) || defined(OSX)) + #include -#include #ifdef OSX +#include #include typedef int (*backtrace_t)(void * *, int); @@ -27,7 +29,11 @@ template TO nasty_cast(FROM f) { FROM f; TO t; } u; u.f = f; return u.t; } -#endif +#else +#include +#endif // OSX + +#endif // defined(UNIX) || defined(OSX) #include "crash.h" -- cgit v1.2.3-54-g00ecf