Ticket #35452: putil.cpp.diff

File putil.cpp.diff, 920 bytes (added by ccarey@…, 12 years ago)

patch to libs/icu/icu-49.1/common/putil.cpp to allow texlive-bin @2012_4 +no_x11 to build successfully on Tiger

  • libs/icu/icu-49.1/common/putil.cpp

    old new  
    114114#endif
    115115
    116116/*
    117  * Cygwin with GCC requires inclusion of time.h after the above disabling strict asci mode statement.
     117 * Cygwin with GCC requires inclusion of time.h after the above disabling strict ANSI mode statement.
    118118 */
    119119#include <time.h>
    120120
     
    123123#endif
    124124
    125125/*
     126 * Mac OS X 10.4 doesn't use its localtime_r() declaration in <time.h> if either _ANSI_SOURCE or _POSIX_C_SOURCE is #defined.
     127 */
     128#if defined(U_TZNAME) && U_PLATFORM_IS_DARWIN_BASED && (defined(_ANSI_SOURCE) || defined(_POSIX_C_SOURCE))
     129U_CFUNC struct tm *localtime_r(const time_t *, struct tm *);
     130#endif
     131
     132/*
    126133 * Only include langinfo.h if we have a way to get the codeset. If we later
    127134 * depend on more feature, we can test on U_HAVE_NL_LANGINFO.
    128135 *