From 8b46b32031af93d19bdbeb0be60ad55bfb8f7cab Mon Sep 17 00:00:00 2001 From: Ted John Date: Tue, 17 Jan 2017 17:07:29 +0000 Subject: [PATCH] Protect score structs from C --- src/openrct2/rct2.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/openrct2/rct2.h b/src/openrct2/rct2.h index dc20d6f9b9..f3d385f96d 100644 --- a/src/openrct2/rct2.h +++ b/src/openrct2/rct2.h @@ -31,6 +31,8 @@ typedef struct rct2_install_info { #pragma pack(push, 1) +#ifdef __cplusplus + /** * scores.dat file header. * size: 0x10 @@ -65,6 +67,8 @@ struct rct_scores_entry }; assert_struct_size(rct_scores_entry, 0x02B0); +#endif // __cplusplus + #pragma pack(pop) enum {