X-Git-Url: https://git.cworth.org/git?p=notmuch;a=blobdiff_plain;f=compat%2Fcompat.h;h=7767fe84a68580dbd2d2953f99645eda81403cac;hp=173ef680ceb8d9d9d67833fcd9db6e10ea4382aa;hb=4b193950a9bf8fb907427526a6191f51e0e2d13c;hpb=8fe3ee6f270efae66e7e0287e32f93a9b48c7a32 diff --git a/compat/compat.h b/compat/compat.h index 173ef680..7767fe84 100644 --- a/compat/compat.h +++ b/compat/compat.h @@ -26,6 +26,10 @@ #ifndef NOTMUCH_COMPAT_H #define NOTMUCH_COMPAT_H +#ifdef __cplusplus +extern "C" { +#endif + #if !HAVE_GETLINE #include #include @@ -42,4 +46,8 @@ getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp); char* strcasestr(const char *haystack, const char *needle); #endif /* !HAVE_STRCASESTR */ +#ifdef __cplusplus +} +#endif + #endif /* NOTMUCH_COMPAT_H */