diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-01-14 13:43:54 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-01-14 13:43:54 +0000 |
commit | 61ededc8554e1efba1dec334a1d6a9c2d3807938 (patch) | |
tree | 8ac993268dbb5adce789ff209e63fa53110dae1d /gtk/gtkcalendar.c | |
parent | 84fcadeb52a16911bc9f387a617d8b622a04aca4 (diff) | |
download | gtk+-61ededc8554e1efba1dec334a1d6a9c2d3807938.tar.gz |
Check for _NL_TIME_FIRST_WEEKDAY too, since it is an enum value, not a
2005-01-14 Matthias Clasen <mclasen@redhat.com>
* configure.in: Check for _NL_TIME_FIRST_WEEKDAY too, since it
is an enum value, not a define. Pointed out by Tommi Komulainen.
* gtk/gtkcalendar.c (gtk_calendar_init): Adapt.
Diffstat (limited to 'gtk/gtkcalendar.c')
-rw-r--r-- | gtk/gtkcalendar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c index 0f45c04041..e4ddf18b4e 100644 --- a/gtk/gtkcalendar.c +++ b/gtk/gtkcalendar.c @@ -34,7 +34,7 @@ #ifdef HAVE_SYS_TIME_H #include <sys/time.h> #endif -#ifdef HAVE_NL_LANGINFO +#ifdef HAVE__NL_TIME_FIRST_WEEKDAY #include <langinfo.h> #endif #include <string.h> @@ -706,7 +706,7 @@ gtk_calendar_init (GtkCalendar *calendar) else if (strcmp (year_before, "calendar:MY") != 0) g_warning ("Whoever translated calendar:MY did so wrongly.\n"); -#if defined (HAVE_NL_LANGINFO) && defined (_NL_TIME_FIRST_WEEKDAY) +#ifdef HAVE__NL_TIME_FIRST_WEEKDAY week_start = nl_langinfo (_NL_TIME_FIRST_WEEKDAY); private_data->week_start = *((unsigned char *) week_start) % 7; #else |