Skip to content

Commit 0237f1b

Browse files
tylerfanellislp
authored andcommitted
include: Add #ifndef header guard
Signed-off-by: Tyler Fanelli <[email protected]>
1 parent a014ac5 commit 0237f1b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

include/libkrun.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#ifndef _LIBKRUN_H
2+
#define _LIBKRUN_H
3+
4+
#ifdef __cplusplus
5+
extern "C" {
6+
#endif
7+
18
#include <inttypes.h>
29
#include <stdbool.h>
310
#include <unistd.h>
@@ -581,3 +588,9 @@ int32_t krun_split_irqchip(uint32_t ctx_id, bool enable);
581588
* down.
582589
*/
583590
int32_t krun_start_enter(uint32_t ctx_id);
591+
592+
#ifdef __cplusplus
593+
}
594+
#endif
595+
596+
#endif // _LIBKRUN_H

0 commit comments

Comments
 (0)