source: trunk/dports/gnome/gnome-panel/files/langinfo.diff @ 14680

Last change on this file since 14680 was 6850, checked in by olegb, 16 years ago

Bug:
Submitted by: danchr@…
Reviewed by: olegb@
Approved by:
Obtained from:
support for darwin 6 - Tak Dan :)

  • Property svn:eol-style set to native
File size: 558 bytes
  • applets/clock/clock.c

    old new  
    4747#include <dirent.h>
    4848#include <string.h>
    4949#include <time.h>
     50#if !defined(__APPLE__)
    5051#include <langinfo.h>
     52#endif
    5153
    5254#include <panel-applet.h>
    5355#include <panel-applet-gconf.h>
     
    525527{
    526528        const char *am;
    527529
     530#if !defined(__APPLE__)
    528531        am = nl_langinfo (AM_STR);
    529532        return (am[0] == '\0') ? CLOCK_FORMAT_24 : CLOCK_FORMAT_12;
     533#else
     534        return CLOCK_FORMAT_24;
     535#endif
    530536}
    531537
    532538#ifdef HAVE_LIBECAL
Note: See TracBrowser for help on using the repository browser.