From 382e6d22382ac846dea791ba05b4c15f38d80813 Mon Sep 17 00:00:00 2001 From: Michael Schwarz Date: Mon, 12 Feb 2024 16:38:54 +0100 Subject: [PATCH] fix --- ptedit_header.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ptedit_header.h b/ptedit_header.h index 4d984a2..a281f54 100644 --- a/ptedit_header.h +++ b/ptedit_header.h @@ -5,10 +5,6 @@ #ifndef PTEDITOR_MODULE_H #define PTEDITOR_MODULE_H -#ifdef __cplusplus -extern "C" { -#endif - #if defined(__linux__) || defined(__linux) || defined(__unix__) || defined(LINUX) || defined(UNIX) #define LINUX #endif @@ -164,6 +160,10 @@ typedef struct { #ifndef _PTEDITOR_H_ #define _PTEDITOR_H_ +#ifdef __cplusplus +"C" { +#endif + #define ptedit_fnc static @@ -973,6 +973,10 @@ ptedit_fnc void ptedit_print_entry_line(size_t entry, int line); /** @} */ +#ifdef __cplusplus +} +#endif + #endif #include #include @@ -1891,7 +1895,3 @@ ptedit_fnc void ptedit_pte_set_pfn(void* address, pid_t pid, size_t pfn) { vm.valid = PTEDIT_VALID_MASK_PTE; ptedit_update(address, pid, &vm); } - -#ifdef __cplusplus -} -#endif