test/mpool_tests.c

changeset 253
e19825a1430a
parent 250
b7d1317b138e
child 259
2f5dea574a75
--- a/test/mpool_tests.c	Wed Oct 18 12:03:44 2017 +0200
+++ b/test/mpool_tests.c	Wed Oct 18 14:23:57 2017 +0200
@@ -123,7 +123,10 @@
     ucx_mempool_destroy(pool);
 }
 
-UCX_EXTERN void test_setdestr(void* elem) {
+#ifdef __cplusplus
+extern "C"
+#endif
+void test_setdestr(void* elem) {
     intptr_t *cb = (intptr_t*) ((intptr_t*) elem)[1];
     *cb = 42;
 }

mercurial