X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=compat%2Fcompat.h;h=7767fe84a68580dbd2d2953f99645eda81403cac;hp=173ef680ceb8d9d9d67833fcd9db6e10ea4382aa;hb=3b24b396c4c9178603dec5380b4e89f6795dee1f;hpb=8cbb5114a20c1217f23977fd5edca99a0b7a2955 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 */