Implement new static function wxDateTime::GetFirstWeekDay()

This function tries to determine the preferred first day of week to use in
calendars. The procedure for obtaining this information is highly
platform-dependent, and is not possible on all platforms; in that case
Sunday is used as the fallback value.

Implementations are included for MSW, OSX, and Linux.
This commit is contained in:
Lauri Nurmi
2017-07-09 12:12:04 +03:00
parent 6527607af7
commit 94c35b2cdd
7 changed files with 142 additions and 0 deletions

View File

@@ -935,6 +935,9 @@
/* struct tm doesn't always have the tm_gmtoff field, define this if it does */
#undef WX_GMTOFF_IN_TM
/* check if nl_langinfo() can be called with argument _NL_TIME_FIRST_WEEKDAY */
#undef HAVE_NL_TIME_FIRST_WEEKDAY
/* Define if you have poll(2) function */
#undef HAVE_POLL