From df458a3bab1a8268f72e909ec60715626cdba07b Mon Sep 17 00:00:00 2001 From: Jacob Hageman Date: Wed, 13 Jan 2021 09:33:15 -0500 Subject: [PATCH] Fix #757, Readd extern C in osapi.h to support C++ use --- src/os/inc/osapi.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/os/inc/osapi.h b/src/os/inc/osapi.h index 96b62a0bb..2d6e11a4b 100644 --- a/src/os/inc/osapi.h +++ b/src/os/inc/osapi.h @@ -30,6 +30,11 @@ #ifndef OSAPI_H #define OSAPI_H +#ifdef __cplusplus +extern "C" +{ +#endif + /* * Note - the "osapi-os-filesys.h" file previously included these system headers * plus a couple others. Some existing code used stdio/stdlib functions but did