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
This commit is contained in:
Przemyslaw Czerpak
2011-04-27 08:59:19 +00:00
parent 3624d38150
commit 00250974d3
2 changed files with 11 additions and 8 deletions

View File

@@ -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.

View File

@@ -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 <windows.h>
# include <windows.h>
#endif
#include <time.h>
/* TODO: make it MT safe */