X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/63c8fa956588acfd80c10e90c0d6032a0d66fdd5..5e29f97a3c55598b9310a4643f9073b6b926672c:/src/generic/helphtml.cpp?ds=sidebyside diff --git a/src/generic/helphtml.cpp b/src/generic/helphtml.cpp index 1f3f59250f..8aa2840806 100644 --- a/src/generic/helphtml.cpp +++ b/src/generic/helphtml.cpp @@ -44,6 +44,17 @@ #include #endif +// ---------------------------------------------------------------------------- +// constants +// ---------------------------------------------------------------------------- + +/// Name for map file. +#define WXEXTHELP_MAPFILE _T("wxhelp.map") +/// Maximum line length in map file. +#define WXEXTHELP_BUFLEN 512 +/// Character introducing comments/documentation field in map file. +#define WXEXTHELP_COMMENTCHAR ';' + #define CONTENTS_ID 0 class wxExtHelpMapEntry : public wxObject @@ -122,7 +133,11 @@ wxHTMLHelpControllerBase::LoadFile(const wxString& ifile) wxChar* f = wxGetWorkingDirectory(); file = f; delete[] f; // wxGetWorkingDirectory returns new memory +#ifdef __WXMAC__ + file << ifile; +#else file << WXEXTHELP_SEPARATOR << ifile; +#endif } else file = ifile;