Add include guards and extern C

This commit is contained in:
Nick Terrell
2017-01-27 16:00:19 -08:00
parent 6570167f8b
commit b42dd27ef5
3 changed files with 25 additions and 1 deletions
+10
View File
@@ -9,6 +9,11 @@
#ifndef POOL_H
#define POOL_H
#if defined (__cplusplus)
extern "C" {
#endif
#include <stddef.h> /* size_t */
typedef struct POOL_ctx_s POOL_ctx;
@@ -43,4 +48,9 @@ typedef void (*POOL_add_function)(void *, POOL_function, void *);
*/
void POOL_add(void *ctx, POOL_function function, void *opaque);
#if defined (__cplusplus)
}
#endif
#endif