fixed borland build
This commit is contained in:
@@ -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 )
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user