aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Northrop <cody@lunarg.com>2014-09-25 14:00:32 -0600
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2014-10-31 15:25:05 -0600
commitbaeff0c1d5b8af43196bc6a7bc7660a39e7ed7a3 (patch)
tree2f70257316787a45f2215fcd3077ff32702a01a3
parentc2076ed0dc0d1c4c6eac37cdf31b3c4d580d751f (diff)
downloadusermoji-baeff0c1d5b8af43196bc6a7bc7660a39e7ed7a3.tar.xz
compiler: C linkage for icd alloc and free
-rw-r--r--icd/common/icd.h8
1 files changed, 8 insertions, 0 deletions
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 */