2009-12-15 04:32 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/include/hbdefs.h
    * modified PHB_FUNC/HB_FUNC_PTR declaration to use external 'extern "C"'
      encapsulation for C++ compilers which do not accept it directly
      (i.e. BORLAND or GCC 2.xx)
This commit is contained in:
Przemyslaw Czerpak
2009-12-15 03:32:55 +00:00
parent 3c59e562f6
commit 7e72311637
2 changed files with 8 additions and 5 deletions

View File

@@ -17,6 +17,12 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-12-15 04:32 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbdefs.h
* modified PHB_FUNC/HB_FUNC_PTR declaration to use external 'extern "C"'
encapsulation for C++ compilers which do not accept it directly
(i.e. BORLAND or GCC 2.xx)
2009-12-15 00:44 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbwin/win_regc.c
* Minor cleanup to make code more robust.

View File

@@ -1615,13 +1615,10 @@ typedef unsigned char HB_U8;
#define HARBOUR void
#endif
#if defined( __BORLANDC__ )
HB_EXTERN_BEGIN
typedef HARBOUR ( * PHB_FUNC )( void );
typedef PHB_FUNC HB_FUNC_PTR;
#else
HB_EXTERN_C_ typedef HARBOUR ( * PHB_FUNC )( void );
HB_EXTERN_C_ typedef PHB_FUNC HB_FUNC_PTR;
#endif
HB_EXTERN_END
typedef SHORT HB_SYMBOLSCOPE; /* stores symbol's scope */