Add minimal support for building non-GUI parts of wxWidgets for Android.

Recognize __ANDROID__ in wx/platform.h and include the appropriate headers
from wx/android.

Also fix a couple of compilation errors (in filename.cpp) and warnings (in
event.h) which only appear when building for Android.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-02-26 20:24:25 +00:00
parent 1eff60811f
commit 1b4bff8262
7 changed files with 1949 additions and 6 deletions

View File

@@ -2666,12 +2666,14 @@ bool wxFileName::GetTimes(wxDateTime *dtAccess,
wxStructStat stBuf;
if ( wxStat( GetFullPath(), &stBuf) == 0 )
{
// Android defines st_*time fields as unsigned long, but time_t as long,
// hence the static_casts.
if ( dtAccess )
dtAccess->Set(stBuf.st_atime);
dtAccess->Set(static_cast<time_t>(stBuf.st_atime));
if ( dtMod )
dtMod->Set(stBuf.st_mtime);
dtMod->Set(static_cast<time_t>(stBuf.st_mtime));
if ( dtCreate )
dtCreate->Set(stBuf.st_ctime);
dtCreate->Set(static_cast<time_t>(stBuf.st_ctime));
return true;
}