compiler: C linkage for icd alloc and free
authorCody Northrop <cody@lunarg.com>
Thu, 25 Sep 2014 20:00:32 +0000 (14:00 -0600)
committerCourtney Goeltzenleuchter <courtney@LunarG.com>
Fri, 31 Oct 2014 21:25:05 +0000 (15:25 -0600)
icd/common/icd.h

index badef5f..3afe9a1 100644 (file)
@@ -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 */