diff --git a/include/wx/generic/helphtml.h b/include/wx/generic/helphtml.h
index dc16448f21..83c87fd1a1 100644
--- a/include/wx/generic/helphtml.h
+++ b/include/wx/generic/helphtml.h
@@ -20,7 +20,11 @@
/// Name for map file.
#define WXEXTHELP_MAPFILE "wxhelp.map"
/// Path separator.
+#ifdef __WXMSW__
+#define WXEXTHELP_SEPARATOR '\\'
+#else
#define WXEXTHELP_SEPARATOR '/'
+#endif
/// Maximum line length in map file.
#define WXEXTHELP_BUFLEN 512
/// Character introducing comments/documentation field in map file.