mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
djvuviewer: build fix.
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
26
haiku-apps/djvuviewer/patches/djvuviewer-1.2.1.patchset
Normal file
26
haiku-apps/djvuviewer/patches/djvuviewer-1.2.1.patchset
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user