Ticket #31712: lion_fonts.patch

File lion_fonts.patch, 1.6 KB (added by spolitov@…, 13 years ago)

Proposed fix

  • lion_fonts.diff

    old new  
    77 #endif
    88 
    99-#if !defined (__USE_GNU) && !defined(__USE_XOPEN2K8)
    10 +#if !defined (__USE_GNU) && !defined(__USE_XOPEN2K8) && MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7
     10+#if !defined (__USE_GNU) && !defined(__USE_XOPEN2K8) && (!defined(MAC_OS_X_VERSION_10_7) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7)
    1111 static ssize_t
    1212 getline (char  **lineptr,
    1313         size_t  *n,
     
    1616  * implementations. They just get the job done for our purposes.
    1717  */
    1818-#if !defined (__USE_GNU) && !defined(__USE_XOPEN2K8)
    19 +#if !defined (__USE_GNU) && !defined(__USE_XOPEN2K8) && MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7
     19+#if !defined (__USE_GNU) && !defined(__USE_XOPEN2K8) && (!defined(MAC_OS_X_VERSION_10_7) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7)
    2020 #define POORMANS_GETLINE_BUFFER_SIZE (65536)
    2121 static ssize_t
    2222 getline (char  **lineptr,
     
    2929 }
    3030 
    3131-#ifndef __USE_GNU
    32 +#if !defined __USE_GNU  && MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7
     32+#if !defined __USE_GNU && (!defined(MAC_OS_X_VERSION_10_7) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7)
    3333 #define POORMANS_GETLINE_BUFFER_SIZE (65536)
    3434 static ssize_t
    3535 getline (char  **lineptr,
     
    4242 }
    4343 
    4444-#ifndef __LP64__
    45 +#if !defined __LP64__ && MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7
     45+#if !defined __LP64__ && (!defined(MAC_OS_X_VERSION_10_7) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7)
    4646 /*
    4747  * compat with old ATSUI backend
    4848  */