Skip to content

Commit

Permalink
Add /usr/include/tidy to include path to better support cross distro
Browse files Browse the repository at this point in the history
compiling.
  • Loading branch information
baumgarr committed Mar 21, 2017
1 parent 46f2e22 commit 37982a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions NixNote2.pro
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ greaterThan(QT_MAJOR_VERSION, 4) {
QT += core gui widgets printsupport webkit webkitwidgets sql network xml dbus
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
unix:INCLUDEPATH += /usr/include/poppler/qt5
unix:INCLUDEPATH += /usr/include/tidy
win32:INCLUDEPATH +="$$PWD/winlib/includes/poppler/qt5"
win32:INCLUDEPATH+= "$$PWD/winlib/includes"
win32:LIBS += -L"$$PWD/winlib" -lpoppler-qt5
Expand All @@ -21,6 +22,7 @@ greaterThan(QT_MAJOR_VERSION, 4) {
equals(QT_MAJOR_VERSION, 4) {
QT += core gui webkit sql network xml
INCLUDEPATH += /usr/include/poppler/qt4
INCLUDEPATH += /usr/include/tidy
LIBS += -lcurl \
-lpthread -L/usr/lib -lpoppler-qt4 -ltidy -g -rdynamic
}
Expand Down
4 changes: 2 additions & 2 deletions html/enmlformatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include <QIcon>
#include <QMessageBox>

#include <tidy/tidy.h>
#include <tidy.h>
#ifndef _WIN32
#include <tidy/buffio.h>
#include <buffio.h>
#else
#include <tidy/tidybuffio.h>
#endif
Expand Down

0 comments on commit 37982a5

Please sign in to comment.