From be2703cb0902a68503eb449cc61026bf5e00e7df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 10 Sep 2004 18:29:52 +0000 Subject: [PATCH] GCC 3 fixes. Doesn't work yet for some reason. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8904 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tools/gensyscalls/Jamfile | 3 ++- src/tools/gensyscalls/gensyscalls_common.h | 15 +++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/tools/gensyscalls/Jamfile b/src/tools/gensyscalls/Jamfile index eba5a3efa1..c2f4320a82 100644 --- a/src/tools/gensyscalls/Jamfile +++ b/src/tools/gensyscalls/Jamfile @@ -3,7 +3,7 @@ SubDir OBOS_TOP src tools gensyscalls ; # build gensyscallinfos BuildPlatformMain gensyscallinfos : gensyscallinfos.cpp ; -LinkSharedOSLibs gensyscallinfos : stdc++.r4 ; +LinkSharedOSLibs gensyscallinfos : $(BUILD_LIBSTDC++) ; # generate the syscall infos source file @@ -33,6 +33,7 @@ GenSyscallInfos $(syscallInfos) : $(syscallsHeaderPP) ; # build gensyscalls +UsePublicHeaders os support ; BuildPlatformMain gensyscalls : gensyscalls.cpp $(syscallInfos:S=$(SUFOBJ)) ; LinkSharedOSLibs gensyscalls : stdc++.r4 ; UsePrivateObjectHeaders gensyscalls.cpp : kernel ; diff --git a/src/tools/gensyscalls/gensyscalls_common.h b/src/tools/gensyscalls/gensyscalls_common.h index 8dc26b522f..2684cb8a6c 100644 --- a/src/tools/gensyscalls/gensyscalls_common.h +++ b/src/tools/gensyscalls/gensyscalls_common.h @@ -5,6 +5,8 @@ #include +using namespace std; + // Exception struct Exception : exception { Exception() @@ -17,9 +19,9 @@ struct Exception : exception { { } - virtual ~Exception() {} + virtual ~Exception() throw() {} - virtual const char *what() const + virtual const char *what() const throw() { return fMessage.c_str(); } @@ -32,24 +34,21 @@ private: struct EOFException : public Exception { EOFException() {} EOFException(const string &message) : Exception(message) {} - virtual ~EOFException() {} + virtual ~EOFException() throw() {} }; // IOException struct IOException : public Exception { IOException() {} IOException(const string &message) : Exception(message) {} - virtual ~IOException() {} + virtual ~IOException() throw() {} }; // ParseException struct ParseException : public Exception { ParseException() {} ParseException(const string &message) : Exception(message) {} - virtual ~ParseException() {} + virtual ~ParseException() throw() {} }; - - - #endif // _GEN_SYSCALLS_COMMON_H