From 9efeef1df8b214decefe2e039831d02fbe3dd99f Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Mon, 20 Nov 2017 15:07:50 -0500 Subject: [PATCH] FIXED: Fix issue in Windows code --- Sources/libMultiMarkdown/file.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Sources/libMultiMarkdown/file.h b/Sources/libMultiMarkdown/file.h index 6c13a3a..0c20108 100644 --- a/Sources/libMultiMarkdown/file.h +++ b/Sources/libMultiMarkdown/file.h @@ -144,4 +144,10 @@ void split_path_file(char ** dir, char ** file, const char * path); // Convert argument to absolute path char * absolute_path_for_argument(const char * arg); + +#if (defined(_WIN32) || defined(__WIN32__)) +// Windows does not know realpath(), so we need a "windows port" +char *realpath(const char *path, char *resolved_path); +#endif + #endif -- 2.40.0