Fix compilation with MSVC 1.52c.

Needs one more file from the c library, BSS_INIT all uninitialized
globals in config.c and a define of SEEK_SET.
This commit is contained in:
Bart Oldeman 2017-12-22 11:29:20 -05:00 committed by Kenneth J Davis
parent e82de4b707
commit 33d707ba7f
3 changed files with 8 additions and 5 deletions

View File

@ -159,9 +159,9 @@ STATIC BYTE szBuf[256] BSS_INIT({0});
struct CfgFile { struct CfgFile {
COUNT nFileDesc; COUNT nFileDesc;
COUNT nCfgLine; COUNT nCfgLine;
} cfgFile[MAX_CHAINS]; } cfgFile[MAX_CHAINS] BSS_INIT({0});
COUNT nCurChain = 0; COUNT nCurChain BSS_INIT(0);
COUNT nFileDesc; COUNT nFileDesc BSS_INIT(0);
BYTE singleStep BSS_INIT(FALSE); /* F8 processing */ BYTE singleStep BSS_INIT(FALSE); /* F8 processing */
BYTE SkipAllConfig BSS_INIT(FALSE); /* F5 processing */ BYTE SkipAllConfig BSS_INIT(FALSE); /* F5 processing */

View File

@ -23,8 +23,8 @@ LIB=$(COMPILERPATH)\lib
# used for building the library # used for building the library
CLIB=$(COMPILERPATH)\lib\slibce.lib CLIB=$(COMPILERPATH)\lib\slibce.lib
MATH_EXTRACT=*aflmul *aFlshl *aFNauldi *aFulrem *aFulshr *aFuldiv *aFlrem *aFldiv MATH_EXTRACT=*aflmul *aFlshl *aFNaulsh *aFNauldi *aFulrem *aFulshr *aFuldiv *aFlrem *aFldiv
MATH_INSERT= +aflmul +aFlshl +aFNauldi +aFulrem +aFulshr +aFuldiv +aFlrem +aFldiv MATH_INSERT= +aflmul +aFlshl +aFNaulsh +aFNauldi +aFulrem +aFulshr +aFuldiv +aFlrem +aFldiv
TARGETOPT= TARGETOPT=
!if $(XCPU) == 186 !if $(XCPU) == 186

View File

@ -46,6 +46,9 @@ unsigned long lseek(int fildes, unsigned long offset, int whence);
#else #else
#include <io.h> #include <io.h>
#ifndef SEEK_SET
#define SEEK_SET 0
#endif
/* #include <stdio.h> */ /* #include <stdio.h> */
#endif #endif