diff --git a/src/html/helpdata.cpp b/src/html/helpdata.cpp
index a3b76378e9..beb05d3d65 100644
--- a/src/html/helpdata.cpp
+++ b/src/html/helpdata.cpp
@@ -569,7 +569,7 @@ bool wxHtmlHelpData::AddBook(const wxString& book)
index = wxEmptyString,
charset = wxEmptyString;
-#ifdef __WXMAC__
+#if defined(__WXMAC__) && !defined(__DARWIN__)
if (wxIsAbsolutePath(book)) bookFull = book;
else bookFull = wxGetCwd() + book; // no slash or dot
wxFileName fn( bookFull );