]> git.notmuchmail.org Git - notmuch/blobdiff - compat/compat.h
test: save buffer content to file instead of printing it in Emacs tests
[notmuch] / compat / compat.h
index d639e0f934cec2b91ebab85574f75490fb8f347f..7767fe84a68580dbd2d2953f99645eda81403cac 100644 (file)
 #ifndef NOTMUCH_COMPAT_H
 #define NOTMUCH_COMPAT_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #if !HAVE_GETLINE
 #include <stdio.h>
 #include <unistd.h>
@@ -38,4 +42,12 @@ getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp);
 
 #endif /* !HAVE_GETLINE */
 
+#if !HAVE_STRCASESTR
+char* strcasestr(const char *haystack, const char *needle);
+#endif /* !HAVE_STRCASESTR */
+
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* NOTMUCH_COMPAT_H */