From 576ee9e052bdc48867637086c3fee341bc4dbe26 Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Tue, 4 Sep 2012 16:49:45 +0000 Subject: [PATCH] 2012-09-04 18:49 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * harbour/src/rtl/fstemp.c ! fixed GCC PP rules - thanks to Teo Fonrouge for the information about the problem --- harbour/ChangeLog | 5 +++++ harbour/src/rtl/fstemp.c | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 51d14542aa..1bf0cdd874 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,11 @@ The license applies to all entries newer than 2009-04-28. */ +2012-09-04 18:49 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) + * harbour/src/rtl/fstemp.c + ! fixed GCC PP rules - thanks to Teo Fonrouge for the information + about the problem + 2012-09-04 14:47 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * harbour/src/debug/debugger.prg * harbour/src/debug/dbgwa.prg diff --git a/harbour/src/rtl/fstemp.c b/harbour/src/rtl/fstemp.c index 58dad26d4e..961b8e9684 100644 --- a/harbour/src/rtl/fstemp.c +++ b/harbour/src/rtl/fstemp.c @@ -79,12 +79,14 @@ #if ( defined( HB_OS_LINUX ) && ( !defined( __WATCOMC__ ) || __WATCOMC__ >= 1280 ) ) || \ defined( HB_OS_BSD ) || defined( HB_OS_DARWIN ) || defined( HB_OS_SUNOS ) # define HB_HAS_MKSTEMP -# if ( defined( HB_OS_BSD ) && !defined( __NetBSD__ ) ) || \ - defined( HB_OS_DARWIN ) || \ - ( defined( HB_OS_LINUX ) && \ - ( defined( _BSD_SOURCE ) || defined( _SVID_SOURCE ) ) && \ - ( defined( __GLIBC_PREREQ ) && __GLIBC_PREREQ( 2, 12 ) ) ) +# if ( defined( HB_OS_BSD ) && !defined( __NetBSD__ ) ) || defined( HB_OS_DARWIN ) # define HB_HAS_MKSTEMPS +# elif defined( HB_OS_LINUX ) && \ + ( defined( _BSD_SOURCE ) || defined( _SVID_SOURCE ) ) && \ + defined( __GLIBC_PREREQ ) +# if __GLIBC_PREREQ( 2, 12 ) +# define HB_HAS_MKSTEMPS +# endif # endif #endif