From ee96bcbb1cbb1165fd5c81e75091554d341911b0 Mon Sep 17 00:00:00 2001 From: Krasimir Angelov Date: Thu, 26 Jan 2023 08:22:14 +0100 Subject: [PATCH] define PgfDB as class for C++ and as struct for C --- src/runtime/c/pgf/pgf.h | 4 ++++ 1 file changed, 4 insertions(+) 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;