From a8f132e54d09117945e2c20c3f1fdcd8cfb42fe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Czerpak?= Date: Fri, 27 Jun 2014 14:53:07 +0200 Subject: [PATCH] 2014-06-27 14:53 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * contrib/hbwin/olecore.c * added workaround for missing DISP_E_BUFFERTOOSMALL declaration in some older C compilers i.e. BCC 5.5 --- ChangeLog.txt | 5 +++++ contrib/hbwin/olecore.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog.txt b/ChangeLog.txt index c9987aca55..dd5090adbc 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -10,6 +10,11 @@ * Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment */ +2014-06-27 14:53 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) + * contrib/hbwin/olecore.c + * added workaround for missing DISP_E_BUFFERTOOSMALL declaration + in some older C compilers i.e. BCC 5.5 + 2014-06-27 12:45 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * src/common/hbfopen.c * use _wfopen() instead of fopen() in MS-Windows UNICODE builds of diff --git a/contrib/hbwin/olecore.c b/contrib/hbwin/olecore.c index 415ff3dfa4..38547c626e 100644 --- a/contrib/hbwin/olecore.c +++ b/contrib/hbwin/olecore.c @@ -1659,6 +1659,9 @@ HB_FUNC( WIN_OLEERROR ) } +#ifndef DISP_E_BUFFERTOOSMALL + #define DISP_E_BUFFERTOOSMALL 0x80020013L +#endif HB_FUNC( WIN_OLEERRORTEXT ) { HRESULT lOleError;