summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-08-31 14:01:27 +0200
committerSlávek Banko <slavek.banko@axis.cz>2021-08-31 14:01:27 +0200
commit5d4026f547b8bb62556d5bc818a8c56d5591b6f1 (patch)
treec956ae8c00bcf2c9e02d30c87a5ca0ad5c454d24
parentec82ccebc01effccbaef3fcaa0855e75b6326801 (diff)
downloadlibkdcraw-5d4026f547b8bb62556d5bc818a8c56d5591b6f1.tar.gz
libkdcraw-5d4026f547b8bb62556d5bc818a8c56d5591b6f1.zip
Fix FTBFS in dcraw and test.
This resolves issue #3. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--libkdcraw/dcraw/dcraw.c4
-rw-r--r--libkdcraw/test/CMakeLists.txt5
2 files changed, 7 insertions, 2 deletions
diff --git a/libkdcraw/dcraw/dcraw.c b/libkdcraw/dcraw/dcraw.c
index 1b9dce6..36dcc71 100644
--- a/libkdcraw/dcraw/dcraw.c
+++ b/libkdcraw/dcraw/dcraw.c
@@ -3935,7 +3935,7 @@ void CLASS vng_interpolate()
signed char y1, x1, y2, x2, weight;
unsigned char grads;
};
- static const interpolate_terms terms[] = {
+ static const struct interpolate_terms terms[] = {
{-2,-2,+0,-1,0,0x01}, {-2,-2,+0,+0,1,0x01}, {-2,-1,-1,+0,0,0x01},
{-2,-1,+0,-1,0,0x02}, {-2,-1,+0,+0,0,0x03}, {-2,-1,+0,+1,1,0x01},
{-2,+0,+0,-1,0,0x06}, {-2,+0,+0,+0,1,0x02}, {-2,+0,+0,+1,0,0x03},
@@ -3959,7 +3959,7 @@ void CLASS vng_interpolate()
{+1,-1,+1,+1,0,0x88}, {+1,+0,+1,+2,0,0x08}, {+1,+0,+2,-1,0,0x40},
{+1,+0,+2,+1,0,0x10}
};
- const interpolate_terms *cpt;
+ const struct interpolate_terms *cpt;
signed char *cp;
signed char chood[] = { -1,-1, -1,0, -1,+1, 0,+1, +1,+1, +1,0, +1,-1, 0,-1 };
ushort (*brow[5])[4], *pix;
diff --git a/libkdcraw/test/CMakeLists.txt b/libkdcraw/test/CMakeLists.txt
index c412d45..2e4a718 100644
--- a/libkdcraw/test/CMakeLists.txt
+++ b/libkdcraw/test/CMakeLists.txt
@@ -6,6 +6,11 @@ include_directories(
${CMAKE_SOURCE_DIR}/libkdcraw/libkdcraw
)
+include_directories( SYSTEM
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
##### test programs