[Libreoffice-commits] core.git: vcl/quartz

Douglas Mencken dougmencken at gmail.com
Tue Apr 22 09:32:38 PDT 2014


 vcl/quartz/CTRunData.hxx |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit 26c10caf5c0a1f6f4e90465d71a5d90352630263
Author: Douglas Mencken <dougmencken at gmail.com>
Date:   Tue Apr 22 12:15:47 2014 -0400

    CTRunData fix for exporting SPI stuff on OSX < 10.6
    
    Change-Id: I7ba23f0b03438cc8a71581cc503aedf46aad45f8
    Reviewed-on: https://gerrit.libreoffice.org/9130
    Reviewed-by: Norbert Thiebaud <nthiebaud at gmail.com>
    Tested-by: Norbert Thiebaud <nthiebaud at gmail.com>

diff --git a/vcl/quartz/CTRunData.hxx b/vcl/quartz/CTRunData.hxx
index 043d404..0aafeef 100644
--- a/vcl/quartz/CTRunData.hxx
+++ b/vcl/quartz/CTRunData.hxx
@@ -12,6 +12,14 @@
 #include "premac.h"
 #if defined(MACOSX) && MACOSX_SDK_VERSION < 1080
 #include <ApplicationServices/ApplicationServices.h>
+#if MAC_OS_X_VERSION_MAX_ALLOWED < 1060
+// The following symbols are SPI (System Programming Interface) in 10.5
+extern "C" {
+    void CTRunGetAdvances(CTRunRef run, CFRange range, CGSize buffer[]);
+    const CGSize* CTRunGetAdvancesPtr(CTRunRef run);
+    extern const CFStringRef kCTTypesetterOptionForcedEmbeddingLevel;
+}
+#endif
 #else
 #include <CoreGraphics/CoreGraphics.h>
 #include <CoreText/CoreText.h>


More information about the Libreoffice-commits mailing list