1.1 --- a/test/mpool_tests.c Wed Oct 18 12:03:44 2017 +0200 1.2 +++ b/test/mpool_tests.c Wed Oct 18 14:23:57 2017 +0200 1.3 @@ -123,7 +123,10 @@ 1.4 ucx_mempool_destroy(pool); 1.5 } 1.6 1.7 -UCX_EXTERN void test_setdestr(void* elem) { 1.8 +#ifdef __cplusplus 1.9 +extern "C" 1.10 +#endif 1.11 +void test_setdestr(void* elem) { 1.12 intptr_t *cb = (intptr_t*) ((intptr_t*) elem)[1]; 1.13 *cb = 42; 1.14 }