-struct file_identity *fn_get_identity (const char *file_name);
-void fn_free_identity (struct file_identity *);
-int fn_compare_file_identities (const struct file_identity *,
- const struct file_identity *);
-unsigned int fn_hash_identity (const struct file_identity *);
+#if defined _WIN32 || defined __WIN32__
+#define WIN32_LEAN_AND_MEAN /* avoid including junk */
+#define UNICODE 1
+#include <windows.h>
+#else
+typedef char TCHAR;
+#endif
+
+TCHAR * convert_to_filename_encoding (const char *s, size_t len, const char *current_encoding);