Add "extern C {...} to header files for C++ builds.
[freeradius.git] / src / include / heap.h
index fdefd05..1f47449 100644 (file)
 #include <freeradius-devel/ident.h>
 RCSIDH(heap_h, "$Id$")
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef int (*fr_heap_cmp_t)(const void *, const void *);
 
 typedef struct fr_heap_t fr_heap_t;
@@ -36,4 +40,8 @@ int fr_heap_extract(fr_heap_t *hp, void *data);
 void *fr_heap_peek(fr_heap_t *hp);
 int fr_heap_num_elements(fr_heap_t *hp);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* LRAD_HEAP_H */