#ifndef NOTMUCH_COMPAT_H
#define NOTMUCH_COMPAT_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#if !HAVE_GETLINE
#include <stdio.h>
#include <unistd.h>
#endif /* !HAVE_GETLINE */
+#if !HAVE_STRCASESTR
+char* strcasestr(const char *haystack, const char *needle);
+#endif /* !HAVE_STRCASESTR */
+
+#ifdef __cplusplus
+}
+#endif
+
#endif /* NOTMUCH_COMPAT_H */