kernel: add c++ support
This commit is contained in:
@@ -4,6 +4,10 @@
|
||||
#include <socks/compiler.h>
|
||||
#include <socks/machine/init.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef int (*initcall_t)(void);
|
||||
|
||||
#define INITLEVEL_EARLY 0
|
||||
@@ -30,4 +34,8 @@ extern void print_kernel_banner(void);
|
||||
extern int do_initcalls(void);
|
||||
extern int start_initlevel(int level);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user