]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/datetime.cpp
gdk_gc_destroy -> gdk_gc_unref -> g_object_unref
[wxWidgets.git] / src / common / datetime.cpp
index 31d6a2ad18daa22473c94303eb9cc89731cb2bc5..5f7f6931e296a30a0c903ea0d4822c5c6a1ec3cb 100644 (file)
@@ -1811,6 +1811,7 @@ wxDateTime::SetToWeekOfYear(int year, wxDateTime_t numWeek, WeekDay wd)
     return dt;
 }
 
+#if WXWIN_COMPATIBILITY_2_6
 // use a separate function to avoid warnings about using deprecated
 // SetToTheWeek in GetWeek below
 static wxDateTime
@@ -1848,6 +1849,7 @@ wxDateTime wxDateTime::GetWeek(wxDateTime_t numWeek,
 {
     return ::SetToTheWeek(GetYear(), numWeek, weekday, flags);
 }
+#endif // WXWIN_COMPATIBILITY_2_6
 
 wxDateTime& wxDateTime::SetToLastMonthDay(Month month,
                                           int year)