From 815195bbcfc4c9712792d22b3f7fac92ece8744a Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Sun, 7 Aug 2016 14:10:24 +0200 Subject: [PATCH] djvuviewer: build fix. --- haiku-apps/djvuviewer/djvuviewer-1.2.1.recipe | 1 + .../patches/djvuviewer-1.2.1.patchset | 26 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 haiku-apps/djvuviewer/patches/djvuviewer-1.2.1.patchset diff --git a/haiku-apps/djvuviewer/djvuviewer-1.2.1.recipe b/haiku-apps/djvuviewer/djvuviewer-1.2.1.recipe index da0e71132..aaa615ce3 100644 --- a/haiku-apps/djvuviewer/djvuviewer-1.2.1.recipe +++ b/haiku-apps/djvuviewer/djvuviewer-1.2.1.recipe @@ -27,6 +27,7 @@ SOURCE_URI="https://github.com/threedeyes/DjVuViewer/archive/$commit.tar.gz" SOURCE_FILENAME="$portName-$commit.tar.gz" SOURCE_DIR="DjVuViewer-$commit" CHECKSUM_SHA256="16698d790fceb8c956e5cae4b460f511600443af4ac6821920e736ac6a3e6b66" +PATCHES="djvuviewer-$portVersion.patchset" ARCHITECTURES="x86_gcc2 x86" diff --git a/haiku-apps/djvuviewer/patches/djvuviewer-1.2.1.patchset b/haiku-apps/djvuviewer/patches/djvuviewer-1.2.1.patchset new file mode 100644 index 000000000..f9f8c0f0e --- /dev/null +++ b/haiku-apps/djvuviewer/patches/djvuviewer-1.2.1.patchset @@ -0,0 +1,26 @@ +From 31291746859d2d9fd9c5b75ee61783eae8e5e547 Mon Sep 17 00:00:00 2001 +From: Adrien Destugues +Date: Sun, 7 Aug 2016 14:06:56 +0200 +Subject: remove duplicate isdigit implementation. + + +diff --git a/Includes/MainWindow.h b/Includes/MainWindow.h +index d6e83e0..c455b14 100644 +--- a/Includes/MainWindow.h ++++ b/Includes/MainWindow.h +@@ -19,12 +19,6 @@ + const uint32 MSG_OUTPUT_TYPE = 'BTMN'; + const uint32 MSG_SAVE_PANEL = 'mFSP'; + +-inline int isdigit(char c) +-{ +- if(c<='9' && c>='0')return 0; +- return -1; +-} +- + + class DjVuWindow : public BWindow + { +-- +2.7.0 +