Fixes that make Haiku build with gcc 4. Mainly out of the following
categories: * Missing includes (like <stdlib.h> and <string.h>). * Linking against $(TARGET_LIBSTDC++) instead of libstdc++.r4.so. * Local variables shadowing parameters. * Default parameters in function definitions (as opposed to function declarations). * All C++ stuff (nothrow, map, set, vector, min, max,...) must be imported explicitly from the std:: namespace now. * "new (sometype)[...]" must read "new sometype[...]", even if sometype is something like "const char *". * __FUNCTION__ is no longer a string literal (but a string expression), i.e. 'printf(__FUNCTION__ ": ...\n")' is invalid code. * A type cast results in a non-lvalue. E.g. "(char *)buffer += bytes" is an invalid expression. * "friend class SomeClass" only works when SomeClass is known before. Otherwise the an inner class with that name is considered as friend. gcc 4 is much pickier about scopes. * gcc 4 is generally stricter with respect to type conversions in C. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14878 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+21
-21
@@ -80,27 +80,27 @@
|
||||
|
||||
/* cpp kit */
|
||||
|
||||
/* -- <typeinfo> */
|
||||
class _IMPEXP_ROOT bad_cast;
|
||||
class _IMPEXP_ROOT bad_typeid;
|
||||
class _IMPEXP_ROOT type_info;
|
||||
|
||||
/* -- <exception> */
|
||||
class _IMPEXP_ROOT exception;
|
||||
class _IMPEXP_ROOT bad_exception;
|
||||
|
||||
/* -- <new.h> */
|
||||
class _IMPEXP_ROOT bad_alloc;
|
||||
|
||||
/* -- <mexcept.h> */
|
||||
class _IMPEXP_ROOT logic_error;
|
||||
class _IMPEXP_ROOT domain_error;
|
||||
class _IMPEXP_ROOT invalid_argument;
|
||||
class _IMPEXP_ROOT length_error;
|
||||
class _IMPEXP_ROOT out_of_range;
|
||||
class _IMPEXP_ROOT runtime_error;
|
||||
class _IMPEXP_ROOT range_error;
|
||||
class _IMPEXP_ROOT overflow_error;
|
||||
// /* -- <typeinfo> */
|
||||
// class _IMPEXP_ROOT bad_cast;
|
||||
// class _IMPEXP_ROOT bad_typeid;
|
||||
// class _IMPEXP_ROOT type_info;
|
||||
//
|
||||
// /* -- <exception> */
|
||||
// class _IMPEXP_ROOT exception;
|
||||
// class _IMPEXP_ROOT bad_exception;
|
||||
//
|
||||
// /* -- <new.h> */
|
||||
// class _IMPEXP_ROOT bad_alloc;
|
||||
//
|
||||
// /* -- <mexcept.h> */
|
||||
// class _IMPEXP_ROOT logic_error;
|
||||
// class _IMPEXP_ROOT domain_error;
|
||||
// class _IMPEXP_ROOT invalid_argument;
|
||||
// class _IMPEXP_ROOT length_error;
|
||||
// class _IMPEXP_ROOT out_of_range;
|
||||
// class _IMPEXP_ROOT runtime_error;
|
||||
// class _IMPEXP_ROOT range_error;
|
||||
// class _IMPEXP_ROOT overflow_error;
|
||||
|
||||
/* support kit */
|
||||
class _IMPEXP_BE BArchivable;
|
||||
|
||||
Reference in New Issue
Block a user