Skip to content

Commit d887816

Browse files
committed
Add missing extern "C" to umf.h
Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
1 parent c5735e4 commit d887816

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

include/umf.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
#include <umf/mempolicy.h>
1616
#include <umf/memspace.h>
1717

18+
#ifdef __cplusplus
19+
extern "C" {
20+
#endif
21+
1822
///
1923
/// @brief Increment the usage reference counter and initialize the global state of libumf
2024
/// if the usage reference counter was equal to 0.
@@ -28,4 +32,8 @@ int umfInit(void);
2832
/// It must be called just before dlclose() and it is not required in other scenarios.
2933
void umfTearDown(void);
3034

35+
#ifdef __cplusplus
36+
}
37+
#endif
38+
3139
#endif /* UMF_UNIFIED_MEMORY_FRAMEWORK_H */

0 commit comments

Comments
 (0)