From a8e799b0666f6335b664a8ff26d71236491e8759 Mon Sep 17 00:00:00 2001 From: Max Payne Date: Sun, 25 Sep 2016 22:25:32 +0300 Subject: [PATCH] Fix fixture using from C++ sources Mangling issues, as always. --- extras/fixture/src/unity_fixture_internals.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/extras/fixture/src/unity_fixture_internals.h b/extras/fixture/src/unity_fixture_internals.h index f65ab42..6076092 100644 --- a/extras/fixture/src/unity_fixture_internals.h +++ b/extras/fixture/src/unity_fixture_internals.h @@ -8,6 +8,11 @@ #ifndef UNITY_FIXTURE_INTERNALS_H_ #define UNITY_FIXTURE_INTERNALS_H_ +#ifdef __cplusplus +extern "C" +{ +#endif + struct _UnityFixture { int Verbose; @@ -36,4 +41,8 @@ void UnityPointer_Set(void** ptr, void* newValue, UNITY_LINE_TYPE line); void UnityPointer_UndoAllSets(void); void UnityPointer_Init(void); +#ifdef __cplusplus +} +#endif + #endif /* UNITY_FIXTURE_INTERNALS_H_ */ -- GitLab