From 7787301eda4cbe4476a73241579c1838f6153279 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Wed, 31 Dec 2014 15:30:26 +0100 Subject: Include guards and C linkage for cmark_ctype.h --- src/cmark_ctype.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/cmark_ctype.h') diff --git a/src/cmark_ctype.h b/src/cmark_ctype.h index 7423f80..f803946 100644 --- a/src/cmark_ctype.h +++ b/src/cmark_ctype.h @@ -1,3 +1,10 @@ +#ifndef CMARK_CMARK_CTYPE_H +#define CMARK_CMARK_CTYPE_H + +#ifdef __cplusplus +extern "C" { +#endif + /** Locale-independent versions of functions from ctype.h. * We want cmark to behave the same no matter what the system locale. */ @@ -9,3 +16,9 @@ int cmark_ispunct(char c); int cmark_isalnum(char c); int cmark_isdigit(char c); + +#ifdef __cplusplus +} +#endif + +#endif -- cgit v1.2.3