From 8917030a11d9eb0f8f88c17df0c657af22fcbca2 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 22 Sep 1999 22:44:06 +0000 Subject: [PATCH] 19990923-00:30 GMT+1 --- harbour/ChangeLog | 6 ++++++ harbour/source/compiler/genc.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index a230a47d3a..f8e5c13cc7 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,9 @@ +19990923-00:30 GMT+1 Victor Szel + + * source/compiler/genc.c + + The generated C code now uses the "extern" keyword for functions + defined outside the .C file. + 19990922-17:05 EDT David G. Holm * source/tools/Makefile diff --git a/harbour/source/compiler/genc.c b/harbour/source/compiler/genc.c index 0c73f30c9b..fbb08c6587 100644 --- a/harbour/source/compiler/genc.c +++ b/harbour/source/compiler/genc.c @@ -93,7 +93,7 @@ void GenCCode( PHB_FNAME pFileName ) /* generates the C language output */ { pFTemp = GetFunction( pFunc->szName ); if( ! pFTemp || pFTemp == functions.pFirst ) - fprintf( yyc, "HARBOUR HB_%s( void );\n", pFunc->szName ); + fprintf( yyc, "extern HARBOUR HB_%s( void );\n", pFunc->szName ); pFunc = pFunc->pNext; }