[HarfBuzz] harfbuzz: Branch 'master'

Simon Hausmann hausmann at kemper.freedesktop.org
Thu Jan 22 00:47:36 PST 2009


 tests/linebreaking/harfbuzz-qt.cpp |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit a1618b0a12e66b6d6362a091be82bdb3d5ae2a38
Author: Simon Hausmann <simon.hausmann at nokia.com>
Date:   Thu Jan 22 09:46:33 2009 +0100

    Fix compilation with slightly stricter compilers.
    
    Correctly declare the application/library interface functions as extern
    "C" to ensure the correct mangling.

diff --git a/tests/linebreaking/harfbuzz-qt.cpp b/tests/linebreaking/harfbuzz-qt.cpp
index 305a1ba..ea03052 100644
--- a/tests/linebreaking/harfbuzz-qt.cpp
+++ b/tests/linebreaking/harfbuzz-qt.cpp
@@ -27,6 +27,8 @@
 #include <QLibrary>
 #include <QTextCodec>
 
+extern "C" {
+
 HB_LineBreakClass HB_GetLineBreakClass(HB_UChar32 ch)
 {
 #if QT_VERSION >= 0x040300
@@ -103,3 +105,4 @@ void HB_TextCodec_FreeResult(char *string)
     free(string);
 }
 
+}



More information about the HarfBuzz mailing list