src/mempool.c

changeset 253
e19825a1430a
parent 251
fae240d633fc
child 259
2f5dea574a75
     1.1 --- a/src/mempool.c	Wed Oct 18 12:03:44 2017 +0200
     1.2 +++ b/src/mempool.c	Wed Oct 18 14:23:57 2017 +0200
     1.3 @@ -56,7 +56,10 @@
     1.4      void           *ptr;
     1.5  } ucx_regdestr;
     1.6  
     1.7 -UCX_EXTERN void ucx_mempool_shared_destr(void* ptr) {
     1.8 +#ifdef __cplusplus
     1.9 +extern "C"
    1.10 +#endif
    1.11 +void ucx_mempool_shared_destr(void* ptr) {
    1.12      ucx_regdestr *rd = (ucx_regdestr*)ptr;
    1.13      rd->destructor(rd->ptr);
    1.14  }

mercurial