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
This commit is contained in:
parent
53cf6d7a5c
commit
be2703cb09
@ -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 ;
|
||||
|
@ -5,6 +5,8 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user