makefile: move pdlibc to extlib, add C++ stub standard headers
It now kind of compiles with x86_64-elf gcc (does not link though)
This commit is contained in:
23
libstd/exception
Normal file
23
libstd/exception
Normal file
@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
#include <__cpp_config.hpp>
|
||||
|
||||
extern "C++" {
|
||||
namespace std {
|
||||
|
||||
|
||||
class exception {
|
||||
public:
|
||||
exception() __NOTHROW {}
|
||||
#ifdef __CXX11
|
||||
exception(const exception &) = default;
|
||||
exception &operator=(const exception &) = default;
|
||||
exception(exception &&) = default;
|
||||
exception &operator=(exception &&) = default;
|
||||
#endif
|
||||
|
||||
virtual const char *what() const __NOTHROW { return "std::exception"; };
|
||||
};
|
||||
|
||||
|
||||
} // namespace std
|
||||
}
|
Reference in New Issue
Block a user