--- libelwix/inc/elwix/ampool.h 2024/08/14 16:01:10 1.6.12.1 +++ libelwix/inc/elwix/ampool.h 2024/12/05 12:33:49 1.7.12.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: ampool.h,v 1.6.12.1 2024/08/14 16:01:10 misho Exp $ +* $Id: ampool.h,v 1.7.12.1 2024/12/05 12:33:49 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -90,6 +90,10 @@ typedef struct _tagMPool { #define mpool_lock(x) (assert((x)), pthread_mutex_lock(&(x)->pool_mtx)) #define mpool_unlock(x) (assert((x)), pthread_mutex_unlock(&(x)->pool_mtx)) +#ifdef __cplusplus +extern "C" { +#endif + typedef int (*mpool_stat_cb)(unsigned int, unsigned int, unsigned int, void *, unsigned int); @@ -295,5 +299,8 @@ void mpool_dump(mpool_t * __restrict mp, const char *f */ int mpool_dump2(mpool_t * __restrict mp, char *str, int strlen); +#ifdef __cplusplus +} +#endif #endif