From bc8533836b75a8c9f586f433bcc739574454d8b3 Mon Sep 17 00:00:00 2001 From: Andy Isaacson Date: Tue, 27 Oct 2015 17:24:55 -0700 Subject: [PATCH] add C++ guards in unity.h --- src/unity.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/unity.h b/src/unity.h index da22820..18470b4 100644 --- a/src/unity.h +++ b/src/unity.h @@ -8,6 +8,11 @@ #define UNITY_FRAMEWORK_H #define UNITY +#ifdef __cplusplus +extern "C" +{ +#endif + #include "unity_internals.h" //------------------------------------------------------- @@ -271,4 +276,7 @@ #define TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE((actual), __LINE__, (message)) //end of UNITY_FRAMEWORK_H +#ifdef __cplusplus +} +#endif #endif