From baeff0c1d5b8af43196bc6a7bc7660a39e7ed7a3 Mon Sep 17 00:00:00 2001 From: Cody Northrop Date: Thu, 25 Sep 2014 14:00:32 -0600 Subject: compiler: C linkage for icd alloc and free --- icd/common/icd.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/icd/common/icd.h b/icd/common/icd.h index badef5f3..3afe9a10 100644 --- a/icd/common/icd.h +++ b/icd/common/icd.h @@ -70,9 +70,17 @@ void icd_clear_msg_callbacks(void); XGL_RESULT icd_set_allocator(const XGL_ALLOC_CALLBACKS *alloc_cb); int icd_get_allocator_id(void); +#ifdef __cplusplus +extern "C" { +#endif + void *icd_alloc(XGL_SIZE size, XGL_SIZE alignment, XGL_SYSTEM_ALLOC_TYPE type); void icd_free(void *mem); +#ifdef __cplusplus +} +#endif + #endif /* ICD_H */ -- cgit v1.2.3