Skip to content

Commit 3c99739

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

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

include/libkrun.h

Lines changed: 14 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,10 @@ 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+
581+
#ifdef __cplusplus
582+
}
583+
#endif
584+
585+
#endif // _LIBKRUN_H

0 commit comments

Comments
 (0)