Ticket #30351: lion_fonts.diff

File lion_fonts.diff, 1.7 KB (added by ejtttje@…, 13 years ago)

patch from cairo bug https://bugs.freedesktop.org/show_bug.cgi?id=39493

  • perf/cairo-perf-report.c

    diff --git a/perf/cairo-perf-report.c perf/cairo-perf-report.c
    index 8ab8090..a3d8bdb 100644
    a/  
    4949typedef ptrdiff_t ssize_t;
    5050#endif
    5151
    52 #if !defined (__USE_GNU) && !defined(__USE_XOPEN2K8)
     52#if !defined (__USE_GNU) && !defined(__USE_XOPEN2K8) && MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7
    5353static ssize_t
    5454getline (char   **lineptr,
    5555         size_t  *n,
    test_report_parse (test_report_t *report, 
    234234 * as needed. These aren't necessary full-fledged general purpose
    235235 * implementations. They just get the job done for our purposes.
    236236 */
    237 #if !defined (__USE_GNU) && !defined(__USE_XOPEN2K8)
     237#if !defined (__USE_GNU) && !defined(__USE_XOPEN2K8) && MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7
    238238#define POORMANS_GETLINE_BUFFER_SIZE (65536)
    239239static ssize_t
    240240getline (char   **lineptr,
  • perf/cairo-perf-trace.c

    diff --git a/perf/cairo-perf-trace.c b/perf/cairo-perf-trace.c
    index ff22882..b3a4679 100644
    a/ usage (const char *argv0) 
    527527             argv0, argv0);
    528528}
    529529
    530 #ifndef __USE_GNU
     530#if !defined __USE_GNU  && MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7
    531531#define POORMANS_GETLINE_BUFFER_SIZE (65536)
    532532static ssize_t
    533533getline (char   **lineptr,
  • src/cairo-quartz-font.c

    diff --git a/src/cairo-quartz-font.c b/src/cairo-quartz-font.c
    index f529fc9..1e57c39 100644
    a/ _cairo_quartz_scaled_font_get_cg_font_ref (cairo_scaled_font_t *abstract_font) 
    802802    return ffont->cgFont;
    803803}
    804804
    805 #ifndef __LP64__
     805#if !defined __LP64__ && MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7
    806806/*
    807807 * compat with old ATSUI backend
    808808 */