Hello all,

Compiling Fossil with the latest MinGW32 (that includes MinGW Runtime >
4.0) seems not to require _USE_32BIT_TIME_T.
Actually Fossil builds without error but will crash at runtime with any
commands that browses the filesystem tree (vfile_scan). This is because
the definition of _wdirent in fossil and in mingw does not match (one
using 32 bits time and the other 64 bits). This may be a regression of
MinGW Runtime...

AFAIK there is no easy fix for that in "config.h" since
_USE_32BIT_TIME_T must be defined before any inclusion of MinGW headers.
That means that __MINGW_MAJOR_VERSION cannot be used to conditionally
define _USE_32BIT_TIME_T. In other words, this would have been handy :

/* Make sure that in Win32 MinGW builds, _USE_32BIT_TIME_T is always
defined. */
#if defined(_WIN32) && !defined(_WIN64) && !defined(_MSC_VER) &&
#    define _USE_32BIT_TIME_T
#  endif

but won't work...

fossil-users mailing list

Reply via email to