--- libelwix/inc/elwix/apatricia.h 2024/01/22 15:15:46 1.4.74.2 +++ libelwix/inc/elwix/apatricia.h 2025/08/21 15:40:07 1.5.22.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: apatricia.h,v 1.4.74.2 2024/01/22 15:15:46 misho Exp $ +* $Id: apatricia.h,v 1.5.22.1 2025/08/21 15:40:07 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004 - 2015 +Copyright 2004 - 2024 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -102,6 +102,9 @@ typedef struct _patricia_tree_t { int num_active_node; /* for debug purpose */ } patricia_tree_t; +#ifdef __cplusplus +extern "C" { +#endif patricia_tree_t *New_Patricia(int maxbits); void Destroy_Patricia(patricia_tree_t *patricia, void_fn_t func); @@ -184,5 +187,9 @@ do { \ } \ } \ } while (0) + +#ifdef __cplusplus +} +#endif #endif /* __APATRICIA_H */