summaryrefslogtreecommitdiff
path: root/palm/jpilot/files/patch-jpilot-langinfo
blob: 4837a963b890f0a8dc87a02852f68d5167110626 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- jpilot.c.orig	Fri Jun  9 23:42:57 2006
+++ jpilot.c	Tue Sep 12 18:51:49 2006
@@ -2180,7 +2180,7 @@
 
    /* Extract first day of week preference from locale in GTK2 */
 #  ifdef ENABLE_GTK2
-#     ifdef HAVE_LANGINFO_H
+#     if defined(HAVE_LANGINFO_H) && defined(_NL_TIME_FIRST_WEEKDAY)
 	 /* GTK 2.8 libraries */
 	 week_start = nl_langinfo (_NL_TIME_FIRST_WEEKDAY);
 	 pref_fdow = *((unsigned char *) week_start) - 1;