for now, they drag in most of the usefull stuff anyway).
#ifndef POOL_H
#define POOL_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include "pooltypes.h"
#include "poolid.h"
#include "source.h"
#include "queue.h"
// bool
-typedef int bool;
+#ifndef __cplusplus
+typedef _Bool bool;
+#endif
// see initpool_data[] in pool.c
extern Source *pool_source(Pool *pool, Solvable *s);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* POOL_H */
#ifndef SOURCE_SOLVE_H
#define SOURCE_SOLVE_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include "pool.h"
#include "source.h"
extern Source *pool_addsource_solv(Pool *pool, FILE *fp, const char *name);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* SOURCE_SOLVE_H */