It seems to link, and I need Unwind now.
I'm too tired to mess with this. I'll probably break something. Time to go to bed.
This commit is contained in:
@ -0,0 +1,12 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/systm.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define __extern_C extern "C"
|
||||
#else
|
||||
#define __extern_C extern
|
||||
#endif
|
||||
|
||||
enum FILE{ stdin, stdout, stderr };
|
||||
|
||||
#define fprintf( file, format, ... ) printf( format, ## __VA_ARGS__ )
|
||||
|
@ -18,6 +18,8 @@ namespace cxxruntime
|
||||
extern void *malloc( std::size_t );
|
||||
extern void *realloc(void *, std::size_t);
|
||||
extern void free(void *);
|
||||
|
||||
extern void *calloc( std::size_t, std::size_t );
|
||||
}
|
||||
#define __extern_c extern "C"
|
||||
#else
|
||||
|
Reference in New Issue
Block a user