fixed borland build

This commit is contained in:
Jeff Hill
2003-04-24 22:37:35 +00:00
parent 0761793165
commit 25fa8008f7
2 changed files with 6 additions and 2 deletions

View File

@@ -107,7 +107,10 @@ void comQueSend::clear ()
void comQueSend::copy_dbr_string ( const void * pValue )
{
this->push ( * static_cast <const dbr_string_t *> ( pValue ) );
// this extra step is required by Borland BCC 5.5
const dbr_string_t & str =
* static_cast <const dbr_string_t *> ( pValue );
this->push ( str );
}
void comQueSend::copy_dbr_short ( const void * pValue )

View File

@@ -17,6 +17,7 @@
#define epicsExportSharedSymbols
#include "osiSock.h"
#include "epicsStdio.h"
/*
* epicsSocketConvertErrnoToString ()
@@ -35,7 +36,7 @@ void epicsSocketConvertErrnoToString (
MAKELANGID ( LANG_NEUTRAL, SUBLANG_DEFAULT ), /* Default language */
pBuf, bufSize, NULL );
if ( ! success ) {
int status = _snprintf (
int status = epicsSnprintf (
pBuf, bufSize, "WINSOCK Error %d", theSockError );
if ( status <= 0 ) {
strncpy ( pBuf, "WINSOCK Error", bufSize );