diff --git a/src/runtime/c/pgf/pgf.h b/src/runtime/c/pgf/pgf.h index 7266be500..f4777b641 100644 --- a/src/runtime/c/pgf/pgf.h +++ b/src/runtime/c/pgf/pgf.h @@ -226,7 +226,11 @@ struct PgfMarshaller { typedef float prob_t; +#ifdef __cplusplus +class PgfDB; +#else typedef struct PgfDB PgfDB; +#endif typedef object PgfRevision; typedef object PgfConcrRevision;