diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-12-31 11:04:46 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-12-31 11:04:46 -0800 |
commit | 4cf38a5569d937142609441a27abf0edb9023da4 (patch) | |
tree | eb3e9f177bd4f9bbcc15deabc9c764e421c59972 /api_test | |
parent | 834266acfdb2aa63e07ae03b08ae11ca21e00dcf (diff) | |
parent | e8a994cddc17eabaa415c73d970205aa489a756c (diff) |
Merge pull request #256 from nwellnhof/windows_fixes
Windows fixes
Diffstat (limited to 'api_test')
-rw-r--r-- | api_test/cplusplus.cpp | 4 | ||||
-rw-r--r-- | api_test/cplusplus.h | 17 | ||||
-rw-r--r-- | api_test/main.c | 4 |
3 files changed, 20 insertions, 5 deletions
diff --git a/api_test/cplusplus.cpp b/api_test/cplusplus.cpp index ea64b06..b6228a3 100644 --- a/api_test/cplusplus.cpp +++ b/api_test/cplusplus.cpp @@ -1,10 +1,10 @@ #include <cstdlib> #include "cmark.h" - +#include "cplusplus.h" #include "harness.h" -extern "C" void +void test_cplusplus(test_batch_runner *runner) { static const char md[] = "paragraph\n"; diff --git a/api_test/cplusplus.h b/api_test/cplusplus.h new file mode 100644 index 0000000..68edcb2 --- /dev/null +++ b/api_test/cplusplus.h @@ -0,0 +1,17 @@ +#ifndef CMARK_API_TEST_CPLUSPLUS_H +#define CMARK_API_TEST_CPLUSPLUS_H + +#include "harness.h" + +#ifdef __cplusplus +extern "C" { +#endif + +void +test_cplusplus(test_batch_runner *runner); + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/api_test/main.c b/api_test/main.c index fae1d05..d2e41d3 100644 --- a/api_test/main.c +++ b/api_test/main.c @@ -7,12 +7,10 @@ #include "node.h" #include "harness.h" +#include "cplusplus.h" #define UTF8_REPL "\xEF\xBF\xBD" -void -test_cplusplus(test_batch_runner *runner); - static const cmark_node_type node_types[] = { CMARK_NODE_DOCUMENT, CMARK_NODE_BLOCK_QUOTE, |