When compat canonicalize_file_name was introduced, it was limited to
C code only because it was used by C code only during that time.
>From 5ec6fd4d, (lib/open: check for split configuration when creating
database., 2021-02-16), lib/open.cc, which is C++, relies on the
existent of canonicalize_file_name.
Let's remove the language restriction to support those platforms don't
have canonicalize_file_name(3).
---
compat/compat.h | 3 ---
1 file changed, 3 deletions(-)
diff --git a/compat/compat.h b/compat/compat.h
index 8f15e585..e418e62c 100644
--- a/compat/compat.h
+++ b/compat/compat.h
@@ -38,12 +38,9 @@ extern "C" {
#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 <stdio.h>
--
2.31.1.192.g0881477623
_______________________________________________
notmuch mailing list -- [email protected]
To unsubscribe send an email to [email protected]