kernel: add c++ support
This commit is contained in:
@@ -4,6 +4,10 @@
|
||||
#include <socks/types.h>
|
||||
#include <socks/compiler.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define PTE_PRESENT 0x01ULL
|
||||
#define PTE_RW 0x02ULL
|
||||
#define PTE_USR 0x04ULL
|
||||
@@ -52,4 +56,8 @@ typedef enum page_size {
|
||||
extern int gigabyte_pages(void);
|
||||
extern int enable_nx(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user