source: trunk/dports/irc/hexchat/files/patch-strptime.diff @ 110850

Last change on this file since 110850 was 110850, checked in by raimue@…, 7 years ago

irc/hexchat:
New port, successor to xchat2, closes #40256

File size: 806 bytes
  • hexchat-2.9.5/src/fe-gtk/banlist.c

    This custom strptime() conflicts with strptime() provided by the system in time.h.
    old new  
    583583 *              #define DATE_FORMAT "%a %b %d %T %Y"
    584584 */
    585585static void
    586 strptime (char *ti, struct tm *tm)
     586xstrptime (char *ti, struct tm *tm)
    587587{
    588588        /* Expect something like "Sat Mar 16 21:24:27 2013" */
    589589        static char *mon[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun",
     
    625625
    626626        gtk_tree_model_get(model, a, DATE_COLUMN, &time1, -1);
    627627        gtk_tree_model_get(model, b, DATE_COLUMN, &time2, -1);
    628         strptime (time1, &tm1);
    629         strptime (time2, &tm2);
     628        xstrptime (time1, &tm1);
     629        xstrptime (time2, &tm2);
    630630        t1 = mktime (&tm1);
    631631        t2 = mktime (&tm2);
    632632
Note: See TracBrowser for help on using the repository browser.