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
|
# build gensyscallinfos
|
||||||
|
|
||||||
BuildPlatformMain gensyscallinfos : gensyscallinfos.cpp ;
|
BuildPlatformMain gensyscallinfos : gensyscallinfos.cpp ;
|
||||||
LinkSharedOSLibs gensyscallinfos : stdc++.r4 ;
|
LinkSharedOSLibs gensyscallinfos : $(BUILD_LIBSTDC++) ;
|
||||||
|
|
||||||
|
|
||||||
# generate the syscall infos source file
|
# generate the syscall infos source file
|
||||||
@ -33,6 +33,7 @@ GenSyscallInfos $(syscallInfos) : $(syscallsHeaderPP) ;
|
|||||||
|
|
||||||
# build gensyscalls
|
# build gensyscalls
|
||||||
|
|
||||||
|
UsePublicHeaders os support ;
|
||||||
BuildPlatformMain gensyscalls : gensyscalls.cpp $(syscallInfos:S=$(SUFOBJ)) ;
|
BuildPlatformMain gensyscalls : gensyscalls.cpp $(syscallInfos:S=$(SUFOBJ)) ;
|
||||||
LinkSharedOSLibs gensyscalls : stdc++.r4 ;
|
LinkSharedOSLibs gensyscalls : stdc++.r4 ;
|
||||||
UsePrivateObjectHeaders gensyscalls.cpp : kernel ;
|
UsePrivateObjectHeaders gensyscalls.cpp : kernel ;
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
// Exception
|
// Exception
|
||||||
struct Exception : exception {
|
struct Exception : 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();
|
return fMessage.c_str();
|
||||||
}
|
}
|
||||||
@ -32,24 +34,21 @@ private:
|
|||||||
struct EOFException : public Exception {
|
struct EOFException : public Exception {
|
||||||
EOFException() {}
|
EOFException() {}
|
||||||
EOFException(const string &message) : Exception(message) {}
|
EOFException(const string &message) : Exception(message) {}
|
||||||
virtual ~EOFException() {}
|
virtual ~EOFException() throw() {}
|
||||||
};
|
};
|
||||||
|
|
||||||
// IOException
|
// IOException
|
||||||
struct IOException : public Exception {
|
struct IOException : public Exception {
|
||||||
IOException() {}
|
IOException() {}
|
||||||
IOException(const string &message) : Exception(message) {}
|
IOException(const string &message) : Exception(message) {}
|
||||||
virtual ~IOException() {}
|
virtual ~IOException() throw() {}
|
||||||
};
|
};
|
||||||
|
|
||||||
// ParseException
|
// ParseException
|
||||||
struct ParseException : public Exception {
|
struct ParseException : public Exception {
|
||||||
ParseException() {}
|
ParseException() {}
|
||||||
ParseException(const string &message) : Exception(message) {}
|
ParseException(const string &message) : Exception(message) {}
|
||||||
virtual ~ParseException() {}
|
virtual ~ParseException() throw() {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif // _GEN_SYSCALLS_COMMON_H
|
#endif // _GEN_SYSCALLS_COMMON_H
|
||||||
|
Loading…
Reference in New Issue
Block a user