mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
45 lines
1.1 KiB
Plaintext
45 lines
1.1 KiB
Plaintext
From 8654d9d893f8748a990c91550edf8ce65e8cd508 Mon Sep 17 00:00:00 2001
|
|
From: Sergei Reznikov <diver@gelios.net>
|
|
Date: Wed, 25 Mar 2015 10:35:25 +0300
|
|
Subject: Fix build
|
|
|
|
|
|
diff --git a/libdjvu/miniexp.cpp b/libdjvu/miniexp.cpp
|
|
index 80ef640..4e8445e 100644
|
|
--- a/libdjvu/miniexp.cpp
|
|
+++ b/libdjvu/miniexp.cpp
|
|
@@ -1241,7 +1241,7 @@ static int stdio_fputs(miniexp_io_t *io, const char *s) {
|
|
|
|
static int true_stdio_fgetc(miniexp_io_t *io) {
|
|
FILE *f = (io->data[0]) ? (FILE*)(io->data[0]) : stdin;
|
|
- return ::getc(f);
|
|
+ return getc(f);
|
|
}
|
|
static int compat_getc() {
|
|
return true_stdio_fgetc(&miniexp_io);
|
|
--
|
|
2.13.1
|
|
|
|
|
|
From 9f3b58cfbbe05e81600ed2a333e60c5b952b40e9 Mon Sep 17 00:00:00 2001
|
|
From: Sergei Reznikov <diver@gelios.net>
|
|
Date: Wed, 25 Mar 2015 10:45:06 +0300
|
|
Subject: Haiku: gcc2 fix
|
|
|
|
|
|
diff --git a/libdjvu/JB2Image.h b/libdjvu/JB2Image.h
|
|
index a87a83b..86a8bfa 100644
|
|
--- a/libdjvu/JB2Image.h
|
|
+++ b/libdjvu/JB2Image.h
|
|
@@ -329,6 +329,7 @@ private:
|
|
int top,left,right,bottom;
|
|
void compute_bounding_box(const GBitmap &cbm);
|
|
};
|
|
+public:
|
|
GTArray<LibRect> boxes;
|
|
void get_bounding_box(int shapeno, LibRect &dest);
|
|
};
|
|
--
|
|
2.13.1
|
|
|