Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
misc0110 committed Feb 12, 2024
1 parent 2930cfe commit 382e6d2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ptedit_header.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -164,6 +160,10 @@ typedef struct {
#ifndef _PTEDITOR_H_
#define _PTEDITOR_H_

#ifdef __cplusplus
"C" {
#endif

#define ptedit_fnc static


Expand Down Expand Up @@ -973,6 +973,10 @@ ptedit_fnc void ptedit_print_entry_line(size_t entry, int line);

/** @} */

#ifdef __cplusplus
}
#endif

#endif
#include <stdio.h>
#include <stdlib.h>
Expand Down Expand Up @@ -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

0 comments on commit 382e6d2

Please sign in to comment.