avoid warnings about localtime() being deprecated from MSVC8/9 by just not using it from a header
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@57502 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -136,6 +136,7 @@ wxMSW:
|
|||||||
- Fix best size calculation for wxNotebook with multiple rows (Alex McCarthy).
|
- Fix best size calculation for wxNotebook with multiple rows (Alex McCarthy).
|
||||||
- Correct coordinates of wxDropFilesEvent (Dmitriy Maksimov).
|
- Correct coordinates of wxDropFilesEvent (Dmitriy Maksimov).
|
||||||
- Fix handling of abandoned mutexes in wxMutex (David Heffernan).
|
- Fix handling of abandoned mutexes in wxMutex (David Heffernan).
|
||||||
|
- Avoid warnings about deprecated localtime with MSVC8/9 (Chris Stankevitz).
|
||||||
|
|
||||||
wxMSW/CE:
|
wxMSW/CE:
|
||||||
|
|
||||||
|
@@ -1100,13 +1100,8 @@ public:
|
|||||||
// another one to get the current time broken down
|
// another one to get the current time broken down
|
||||||
static struct tm *GetTmNow()
|
static struct tm *GetTmNow()
|
||||||
{
|
{
|
||||||
#ifdef __WXWINCE__
|
|
||||||
static struct tm l_CurrentTime;
|
static struct tm l_CurrentTime;
|
||||||
return GetTmNow(&l_CurrentTime);
|
return GetTmNow(&l_CurrentTime);
|
||||||
#else
|
|
||||||
time_t t = GetTimeNow();
|
|
||||||
return localtime(&t);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// get current time using thread-safe function
|
// get current time using thread-safe function
|
||||||
|
Reference in New Issue
Block a user