From 1961ae06e96f1111f9c4316d9d08fc485008935f Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Fri, 28 Nov 2014 15:36:19 +0100 Subject: Test that libcmark can be used by C++ code --- api_test/harness.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'api_test/harness.h') diff --git a/api_test/harness.h b/api_test/harness.h index 5fdc7ae..55a6232 100644 --- a/api_test/harness.h +++ b/api_test/harness.h @@ -1,6 +1,10 @@ #ifndef CMARK_API_TEST_HARNESS_H #define CMARK_API_TEST_HARNESS_H +#ifdef __cplusplus +extern "C" { +#endif + typedef struct { int test_num; int num_passed; @@ -30,5 +34,9 @@ test_ok(test_batch_runner *runner); void test_print_summary(test_batch_runner *runner); +#ifdef __cplusplus +} +#endif + #endif -- cgit v1.2.3