From 4dd15aa7d7c2aae0e4d96e4ac0a4c1423afd396e Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Thu, 12 Mar 2020 18:36:38 -0500 Subject: Fix #169 - header pragma omitted by default --- tests/include/test2.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tests/include') diff --git a/tests/include/test2.hpp b/tests/include/test2.hpp index 0fd90ee..2f9a281 100644 --- a/tests/include/test2.hpp +++ b/tests/include/test2.hpp @@ -4,11 +4,13 @@ #define TEST_FLOAT 5.12 #define TEST_HEX 0x512 -int test_call_int(); +extern "C" { + int test_call_int(); -struct Foo{ - int bar; -}; + struct Foo{ + int bar; + }; +} class Foo1{ int bar1; -- cgit v1.2.3