projects
/
platform
/
upstream
/
Vulkan-LoaderAndValidationLayers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b8b8fd
)
compiler: C linkage for icd alloc and free
author
Cody Northrop
<cody@lunarg.com>
Thu, 25 Sep 2014 20:00:32 +0000
(14:00 -0600)
committer
Courtney Goeltzenleuchter
<courtney@LunarG.com>
Fri, 31 Oct 2014 21:25:05 +0000
(15:25 -0600)
icd/common/icd.h
patch
|
blob
|
history
diff --git
a/icd/common/icd.h
b/icd/common/icd.h
index
badef5f
..
3afe9a1
100644
(file)
--- 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 */