[Freeassociation-devel] 32 bit time_t

Allen Winter winter at kde.org
Thu Dec 29 13:42:29 PST 2011


On Thursday 29 December 2011 02:12:59 PM Antony Bowesman wrote:
> I'm integrating libical with some old 32 bit s/w, which is built with 
> _USE_32BIT_TIME_T on Windows.  This means any function with time_t in the 
> interface, e.g. icaltime_from_timet_with_zone() doesn't work using the default 
> libical build.
> 
> I tried to run Cmake with -D_USE_32BIT_TIME_T=true, but it ignores that param.
> 
> What's the 'right' way to make libical use 32 bit time_t?  I modified the vcproj 
> files, but that's a hack.
> 
> Is it modify cmakelists.txt or something else
> 
> Can it be made configurable about whether Win version is built with 32/64 time_t?
> 
So even if you are using a 32 bit MSVC, time_t is still 64 bits?
that seems a little strange.

try this: in the libical/CMakeLists.txt, put the line
add_definitions(-D_USE_32BIT_TIME_T=1)
somewhere near the top 

let me know 
-Allen







More information about the libical-devel mailing list