Skip to content

Commit 70fb6cd

Browse files
authored
Merge pull request #542 from ldorau/Add_missing_extern_C_to_umf.h
Add missing extern "C" to umf.h
2 parents c5735e4 + d887816 commit 70fb6cd

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)