djvuviewer: build fix.

This commit is contained in:
Adrien Destugues
2016-08-07 14:10:24 +02:00
parent 6a5d0160de
commit 815195bbcf
2 changed files with 27 additions and 0 deletions

View File

@@ -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"

View File

@@ -0,0 +1,26 @@
From 31291746859d2d9fd9c5b75ee61783eae8e5e547 Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@gmail.com>
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