From 7be63457b557fa3caa8d3f90249469396f0b292d Mon Sep 17 00:00:00 2001 From: "David G. Holm" Date: Wed, 25 Oct 2000 19:02:23 +0000 Subject: [PATCH] See ChangeLog entry 2000-10-25 15:00 UTC-0400 David G. Holm --- harbour/ChangeLog | 4 ++++ harbour/source/pp/ppcore.c | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 40ba15b594..0c486030c1 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,7 @@ +2000-10-25 15:00 UTC-0400 David G. Holm + * source/pp/ppcore.c + ! Neither Cygwin nor IBM VAC++ supports sys_errlist. + 2000-10-25 13:45 GMT+3 Alexander Kresin * source/pp/ppcore.c * fixed problem, reported by John Skelton diff --git a/harbour/source/pp/ppcore.c b/harbour/source/pp/ppcore.c index 4c53955cc7..40d9ba70bc 100644 --- a/harbour/source/pp/ppcore.c +++ b/harbour/source/pp/ppcore.c @@ -443,7 +443,13 @@ int hb_pp_ParseDirective( char * sLine ) if( errno == 0 || errno == EMFILE ) hb_compGenError( hb_pp_szErrors, 'F', HB_PP_ERR_TOO_MANY_INCLUDES, sLine, NULL ); else + { + #if defined(__CYGWIN__) || defined(__IBMCPP__) + hb_compGenError( hb_pp_szErrors, 'F', HB_PP_ERR_CANNOT_OPEN, sLine, "" ); + #else hb_compGenError( hb_pp_szErrors, 'F', HB_PP_ERR_CANNOT_OPEN, sLine, sys_errlist[ errno ] ); + #endif + } } }