From d68bfa6b967c38badd1eea36ff0b3c4df9b0dfea Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 4 Dec 2007 16:53:32 +0000 Subject: [PATCH] Monotone-Parent: 0cee430f2a0dfc64e4d3616db2934929c59abbbf Monotone-Revision: a311d7d0d46a40428355d5d16855425659aafddf Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-12-04T16:53:32 Monotone-Branch: ca.inverse.sogo --- Main/GNUmakefile | 2 +- Main/NSException+Stacktrace.m | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Main/GNUmakefile b/Main/GNUmakefile index 5688a61dd..cac596f5d 100644 --- a/Main/GNUmakefile +++ b/Main/GNUmakefile @@ -6,7 +6,7 @@ include ../Version include ./Version ADDITIONAL_INCLUDE_DIRS += -I../SOPE/ -ADDITIONAL_LIB_DIRS += -L../SOPE/GDLContentStore/obj/ +ADDITIONAL_LIB_DIRS += -L../SOPE/GDLContentStore/obj/ -lbfd SOGOD = sogod-$(MAJOR_VERSION).$(MINOR_VERSION) TOOL_NAME = $(SOGOD) diff --git a/Main/NSException+Stacktrace.m b/Main/NSException+Stacktrace.m index f56046f40..f202598b8 100644 --- a/Main/NSException+Stacktrace.m +++ b/Main/NSException+Stacktrace.m @@ -36,6 +36,9 @@ #include #include +#if GNUSTEP_BASE_MAJOR_VERSION >= 1 +#if GNUSTEP_BASE_MINOR_VERSION > 13 + // // // @@ -65,12 +68,14 @@ _NSFoundationUncaughtExceptionHandler (NSException *exception) // // // + #define STACKSYMBOLS 1 @interface GSStackTrace : NSObject { NSMutableArray *frames; } + + (GSStackTrace*) currentStack; - (NSString*) description; @@ -81,7 +86,7 @@ _NSFoundationUncaughtExceptionHandler (NSException *exception) @end -#if defined(STACKSYMBOLS) +#ifdef STACKSYMBOLS // GSStackTrace inspired by FYStackTrace.m // created by Wim Oudshoorn on Mon 11-Apr-2006 @@ -538,3 +543,6 @@ GSLoadModule(NSString *fileName) } @end + +#endif /* GNUSTEP_BASE_MINOR_VERSION */ +#endif /* GNUSTEP_BASE_MAJOR_VERSION */