[date_time] MinGW no reentrant std functions patch

MinGW doesn't seem to support reentrant std functions, so I think the attached patch should be applied. Best regards, -- Daniel Schlyder http://bitblaze.com/

On Wed, 30 Mar 2005 07:15:30 +0200, Daniel Schlyder wrote
MinGW doesn't seem to support reentrant std functions, so I think the attached patch should be applied.
Ok, I've applied the patch -- although I'm uncertain that the mingw regression failure details bear this out... http://tinyurl.com/3skx4 Jeff

Jeff Garland:
Ok, I've applied the patch -- although I'm uncertain that the mingw regression failure details bear this out...
I get the following errors when compiling my project with MinGW GCC 3.4.2 without the patch: E:/libs/boost/boost/date_time/c_time.hpp: In static member function `static tm * boost::date_time::c_time::localtime(const time_t *, tm *)': E:/libs/boost/boost/date_time/c_time.hpp:52: error: `localtime_r' undeclared ( first use this function) E:/libs/boost/boost/date_time/c_time.hpp: In static member function `static tm * boost::date_time::c_time::gmtime(const time_t *, tm *)': E:/libs/boost/boost/date_time/c_time.hpp:60: error: `gmtime_r' undeclared ( first use this function) -- Daniel Schlyder http://bitblaze.com/

On Wed, 30 Mar 2005 15:39:40 +0200, Daniel Schlyder wrote
Jeff Garland:
Ok, I've applied the patch -- although I'm uncertain that the mingw regression failure details bear this out...
I get the following errors when compiling my project with MinGW GCC 3.4.2 without the patch:
E:/libs/boost/boost/date_time/c_time.hpp: In static member function `static tm * boost::date_time::c_time::localtime(const time_t *, tm *)': E:/libs/boost/boost/date_time/c_time.hpp:52: error: `localtime_r' undeclared ( first use this function) E:/libs/boost/boost/date_time/c_time.hpp: In static member function `static tm * boost::date_time::c_time::gmtime(const time_t *, tm *)': E:/libs/boost/boost/date_time/c_time.hpp:60: error: `gmtime_r' undeclared ( first use this function)
Right, it wasn't that I didn't believe you, I was just wondering if there is a way the mingw might have those functions installed somehow since the regression tests weren't failing on this issue. So if someone out there knows of a way that mingw can have these functions we can refine the macro to enable them. But for now they have been removed by your patch. Jeff

Jeff Garland:
Right, it wasn't that I didn't believe you, I was just wondering if there is a way the mingw might have those functions installed somehow since the regression tests weren't failing on this issue. So if someone out there knows of a way that mingw can have these functions we can refine the macro to enable them. But for now they have been removed by your patch.
Ok, I've got the following packages installed: mingw-runtime-3.7.tar.gz binutils-2.15.94-20050118-1.tar.gz mingw32-make-3.80.0-3.exe gcc-core-3.4.2-20040916-1.tar.gz gcc-g++-3.4.2-20040916-1.tar.gz w32api-3.2.tar.gz Browsing through MinGW's downloads, I can't see an optional package that would provide the reentrant functions. I also searched the installation for "localtime_r" without result. I guess it could be a builtin or something I now little of. :/ -- Daniel Schlyder http://bitblaze.com/
participants (2)
-
Daniel Schlyder
-
Jeff Garland