MSVC <= 11.0 doesn't like 'const int' in C code

This commit is contained in:
Andrew Johnson
2020-03-03 00:53:16 -06:00
parent 5361888997
commit fdacb6b92e

View File

@@ -45,7 +45,7 @@ epicsShareFunc FILE * epicsShareAPI epicsTempFile ()
// _O_BINARY no translation
// _O_SHORT_LIVED avoid flush to disk
//
const int openFlag = _O_CREAT | _O_EXCL | _O_RDWR |
int openFlag = _O_CREAT | _O_EXCL | _O_RDWR |
_O_SHORT_LIVED | _O_BINARY | _O_TEMPORARY;
int fd = open ( pName, openFlag, _S_IWRITE );
FILE * pNewFile = 0;