Problem with tm_gmtoff in kjs

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Thu Jan 19 07:01:57 GMT 2006


Hi,

In kjs/date_object.cpp you're using tm.tm_gmtoff which isn't defined on
win32. Afaik this member is a BSD extension and so not available
everywhere.So my question is what to do with this:
- define the structure with tm_gmtoff (and tm_zone) for win32 (this is
possible because win32 sdk headers mask the definition with '#ifndef
_TM_DEFINED')
- mask the usage of tm_gmtoff with '#ifndef Q_OS_WIN'
- add a check for tm_gmtoff in bksys/unsermake and mask then with '#ifdef
HAVE_TM_GMTOFF'

Christian

-- 
DSL-Aktion wegen großer Nachfrage bis 28.2.2006 verlängert:
GMX DSL-Flatrate 1 Jahr kostenlos* http://www.gmx.net/de/go/dsl




More information about the kde-core-devel mailing list