diff --git a/harbour/ChangeLog b/harbour/ChangeLog index cc096af534..1690977ac5 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,11 @@ The license applies to all entries newer than 2009-04-28. */ +2011-04-27 10:59 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/contrib/hbct/dattime3.c + * set _SVID_SOURCE macro before any header files to enable stime() + in Linux builds even when C89 is forced by some compiler switches + 2011-04-27 10:50 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbqt/qtcore/hbqt_pointer.cpp % Further simplified, cleaned, optimized, recursive call unrolled. diff --git a/harbour/contrib/hbct/dattime3.c b/harbour/contrib/hbct/dattime3.c index b46e06c501..f1095ed492 100644 --- a/harbour/contrib/hbct/dattime3.c +++ b/harbour/contrib/hbct/dattime3.c @@ -51,19 +51,17 @@ * */ +/* stime exists only in SVr4, SVID, X/OPEN and Linux */ +#ifndef _SVID_SOURCE +# define _SVID_SOURCE +#endif + #include "hbapi.h" #include "hbdate.h" -#if defined( HB_OS_LINUX ) - /* stime exists only in SVr4, SVID, X/OPEN and Linux */ -# ifndef _SVID_SOURCE -# define _SVID_SOURCE -# endif -#endif #if defined( HB_OS_WIN ) - #include +# include #endif - #include /* TODO: make it MT safe */