From 15b1a8e59bfb7e5ddbefad89f9b09756d75c6933 Mon Sep 17 00:00:00 2001 From: Daniel Thornburgh Date: Mon, 13 Nov 2023 12:21:59 -0800 Subject: [PATCH] Support C++ in cbm.h --- mos-platform/commodore/cbm.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mos-platform/commodore/cbm.h b/mos-platform/commodore/cbm.h index 0940cd7e4..1513c7998 100644 --- a/mos-platform/commodore/cbm.h +++ b/mos-platform/commodore/cbm.h @@ -45,6 +45,9 @@ #ifndef _CBM_H #define _CBM_H +#ifdef __cplusplus +extern "C" { +#endif /* Check for errors */ @@ -328,5 +331,9 @@ void __fastcall__ cbm_closedir (unsigned char lfn); #endif +#ifdef __cplusplus +} +#endif + /* End of cbm.h */ #endif