X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=compat%2Fcompat.h;fp=compat%2Fcompat.h;h=634d505b764ed4e07acefa62c7bf8c3c11012211;hp=5a402d5c7693e7e6066382ce4cfe1983664ef7b0;hb=af5c3afa91cc29268c6754ea70f15cae30f22403;hpb=134dbadaf517c6962c2588f36f1f8782277e2f95 diff --git a/compat/compat.h b/compat/compat.h index 5a402d5c..634d505b 100644 --- a/compat/compat.h +++ b/compat/compat.h @@ -37,6 +37,14 @@ extern "C" { #define _POSIX_PTHREAD_SEMANTICS 1 #endif +#if !HAVE_CANONICALIZE_FILE_NAME +/* we only call this function from C, and this makes testing easier */ +#ifndef __cplusplus +char * +canonicalize_file_name (const char *path); +#endif +#endif + #if !HAVE_GETLINE #include #include