summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <andreas.kling@nokia.com>2010-06-16 00:10:16 +0200
committerSimon Hausmann <simon.hausmann@nokia.com>2010-06-16 09:56:11 +0200
commit392deb54d95e5238b9855267e1a236246bdd753a (patch)
tree06ba346982ed1b98d3f36c3be7bd2528526a1cc7
parent1313dc84678c74f1c24f910f702d7ed27a417607 (diff)
Build fix for C90 compilers (mixed declarations and code)
Signed-off-by: Simon Hausmann <simon.hausmann@nokia.com>
-rw-r--r--src/harfbuzz-open.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/harfbuzz-open.c b/src/harfbuzz-open.c
index 4fc6ed1..255b7e6 100644
--- a/src/harfbuzz-open.c
+++ b/src/harfbuzz-open.c
@@ -1285,6 +1285,7 @@ HB_INTERNAL HB_Error
_HB_OPEN_Load_Device( HB_Device** device,
HB_Stream stream )
{
+ HB_Device* d;
HB_Error error;
HB_UShort n, count;
@@ -1301,7 +1302,7 @@ _HB_OPEN_Load_Device( HB_Device** device,
return error;
}
- HB_Device* d = *device;
+ d = *device;
d->StartSize = GET_UShort();
d->EndSize = GET_UShort();
@@ -1402,6 +1403,7 @@ _HB_OPEN_Get_Device( HB_Device** device,
HB_UShort size,
HB_Short* value )
{
+ HB_Device* d;
HB_UShort byte, bits, mask, f, s;
HB_Error error;
@@ -1411,7 +1413,7 @@ _HB_OPEN_Get_Device( HB_Device** device,
return error;
}
- HB_Device* d = *device;
+ d = *device;
f = d->DeltaFormat;