summaryrefslogtreecommitdiffstats
path: root/src/prefix.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/prefix.h')
-rw-r--r--src/prefix.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/prefix.h b/src/prefix.h
index 0406f29f8..0c2db5b58 100644
--- a/src/prefix.h
+++ b/src/prefix.h
@@ -114,6 +114,17 @@ char *br_strcat (const char *str1, const char *str2);
char *br_extract_dir (const char *path);
char *br_extract_prefix(const char *path);
+#ifdef __WIN32__
+
+/**
+ * Win32 version of a relocatable function
+ */
+char *win32_relative_path(const char *childPath);
+
+#define WIN32_DATADIR(suffix) (win32_relative_path(suffix))
+
+#endif
+
#ifdef __cplusplus
}