Skip to content

Commit 69cf00e

Browse files
committed
include: Add #ifndef header guard
Signed-off-by: Tyler Fanelli <[email protected]>
1 parent 51ce66e commit 69cf00e

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>
@@ -569,3 +576,9 @@ int32_t krun_set_nested_virt(uint32_t ctx_id, bool enabled);
569576
* down.
570577
*/
571578
int32_t krun_start_enter(uint32_t ctx_id);
579+
580+
#ifdef __cplusplus
581+
}
582+
#endif
583+
584+
#endif // _LIBKRUN_H

0 commit comments

Comments
 (0)