[HarfBuzz] compilation failure

Jonathan Kew jonathan at jfkew.plus.com
Thu Apr 22 03:33:08 PDT 2010


Hi Behdad,

The most recent harfbuzz-ng code fails to compile under some gcc versions because of the use of a semicolon after the DEFINE_NULL_DATA(....); macro. Under gcc-4.3.3, it failed with the error:

  In file included from /builds/slave/sendchange-linux-hg/build/gfx/harfbuzz/src/hb-open-file-private.hh:30,
                   from /builds/slave/sendchange-linux-hg/build/gfx/harfbuzz/src/hb-font.cc:30:
  /builds/slave/sendchange-linux-hg/build/gfx/harfbuzz/src/hb-open-type-private.hh:405: error: extra ‘;’

(The DEFINE_NULL_DATA macro ends with an inline function definition, which does not require a semicolon after its closing brace.)

The attached patch should fix it.

Jonathan


-------------- next part --------------
A non-text attachment was scrubbed...
Name: hb-define-null-data.patch
Type: application/octet-stream
Size: 2841 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/harfbuzz/attachments/20100422/735e7e01/attachment.obj>
-------------- next part --------------




More information about the HarfBuzz mailing list