]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/qt_helpers.cpp
Replace Q_WS_WIN with appropriate guards to account for Qt5.
[features.git] / src / frontends / qt4 / qt_helpers.cpp
index 2b6237188568c0df47e9610bb4a0982e79a6649c..dc78b9dbac8927e0da0043dc4e89a60a49910684 100644 (file)
@@ -301,7 +301,7 @@ QString const externalLineEnding(docstring const & str)
 #ifdef Q_WS_MACX
        // The MAC clipboard uses \r for lineendings, and we use \n
        return toqstr(subst(str, '\n', '\r'));
-#elif defined(Q_WS_WIN)
+#elif defined(Q_OS_WIN) || defined(Q_CYGWIN_WIN)
        // Windows clipboard uses \r\n for lineendings, and we use \n
        return toqstr(subst(str, from_ascii("\n"), from_ascii("\r\n")));
 #else