Initial C++ runtime work. Much more to do.

This commit is contained in:
2015-05-02 23:32:01 -04:00
parent 772476ea85
commit db2bda84c8
35 changed files with 7920 additions and 0 deletions

23
include/stddef.h Normal file
View File

@ -0,0 +1,23 @@
#ifdef __cplusplus
extern "C"
{
#endif
#include <sys/types.h>
#include <sys/stddef.h>
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
#undef NULL
#define NULL (nullptr)
#else
#endif
#ifdef __cplusplus
namespace std
{
using size_t= ::size_t;
using ptrdiff_t= ::ptrdiff_t;
}
#endif