Skip to content

Commit

Permalink
Fix Darwin build
Browse files Browse the repository at this point in the history
  • Loading branch information
edocevoli committed Oct 31, 2020
1 parent 54526dc commit e4b8ca4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@
#include <PDFBackend.h>
#include <QBitArray>

#if !defined(MIKTEX)
#if defined(HAVE_POPPLER_XPDF_HEADERS) && defined(Q_OS_DARWIN)
#include "poppler-config.h"
#include "GlobalParams.h"
#include <QCoreApplication>
#include <QDir>
#include <memory>
#endif
#endif


// Comparison operator for QSizeF needed to use QSizeF as keys in a QMap
Expand Down Expand Up @@ -1041,6 +1043,7 @@ QString Page::selectedText(const QList<QPolygonF> & selection, QMap<int, QRectF>

// NOLINTNEXTLINE(modernize-use-equals-default)
PopplerQtBackend::PopplerQtBackend() {
#if !defined(MIKTEX)
#if defined(HAVE_POPPLER_XPDF_HEADERS) && defined(Q_OS_DARWIN)
#if defined(POPPLER_HAS_GLOBALPARAMSINITER)
QDir dataDir{QCoreApplication::applicationDirPath()};
Expand All @@ -1065,6 +1068,7 @@ PopplerQtBackend::PopplerQtBackend() {
}
#endif // defined(POPPLER_HAS_GLOBALPARAMSINITER)
#endif // defined(HAVE_POPPLER_XPDF_HEADERS) && defined(Q_OS_DARWIN)
#endif
}

} // namespace QtPDF
Expand Down
2 changes: 1 addition & 1 deletion Programs/Editors/TeXworks/texworks-version.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#define MIKTEX_COMP_MAJOR_VERSION 4
#define MIKTEX_COMP_MINOR_VERSION 0
#define MIKTEX_COMP_PATCH_VERSION 0
#define MIKTEX_COMP_PATCH_VERSION 1

#define MIKTEX_COMP_ORIG_VERSION_STR TEXWORKS_VERSION

Expand Down

0 comments on commit e4b8ca4

Please sign in to comment.