Skip to content

Commit 835a9b8

Browse files
committed
Add C specific flags
1 parent a97900a commit 835a9b8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

kubernetes/include/utils.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
#ifndef UTILS_HPP
22
#define UTILS_HPP
33

4+
#ifdef __cplusplus
5+
extern "C" {
6+
#endif
47

58
#if !defined(HAVE_STRNDUP)
69
char *strndup(const char *s, size_t n);
710
#endif /* ! HAVE_STRNDUP */
811

12+
#ifdef __cplusplus
13+
}
14+
#endif
15+
916
#endif //UTILS_HPP

0 commit comments

Comments
 (0)