mirror of https://github.com/FDOS/kernel.git
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:
parent
e82de4b707
commit
33d707ba7f
|
@ -159,9 +159,9 @@ STATIC BYTE szBuf[256] BSS_INIT({0});
|
|||
struct CfgFile {
|
||||
COUNT nFileDesc;
|
||||
COUNT nCfgLine;
|
||||
} cfgFile[MAX_CHAINS];
|
||||
COUNT nCurChain = 0;
|
||||
COUNT nFileDesc;
|
||||
} cfgFile[MAX_CHAINS] BSS_INIT({0});
|
||||
COUNT nCurChain BSS_INIT(0);
|
||||
COUNT nFileDesc BSS_INIT(0);
|
||||
|
||||
BYTE singleStep BSS_INIT(FALSE); /* F8 processing */
|
||||
BYTE SkipAllConfig BSS_INIT(FALSE); /* F5 processing */
|
||||
|
|
|
@ -23,8 +23,8 @@ LIB=$(COMPILERPATH)\lib
|
|||
# used for building the library
|
||||
|
||||
CLIB=$(COMPILERPATH)\lib\slibce.lib
|
||||
MATH_EXTRACT=*aflmul *aFlshl *aFNauldi *aFulrem *aFulshr *aFuldiv *aFlrem *aFldiv
|
||||
MATH_INSERT= +aflmul +aFlshl +aFNauldi +aFulrem +aFulshr +aFuldiv +aFlrem +aFldiv
|
||||
MATH_EXTRACT=*aflmul *aFlshl *aFNaulsh *aFNauldi *aFulrem *aFulshr *aFuldiv *aFlrem *aFldiv
|
||||
MATH_INSERT= +aflmul +aFlshl +aFNaulsh +aFNauldi +aFulrem +aFulshr +aFuldiv +aFlrem +aFldiv
|
||||
|
||||
TARGETOPT=
|
||||
!if $(XCPU) == 186
|
||||
|
|
|
@ -46,6 +46,9 @@ unsigned long lseek(int fildes, unsigned long offset, int whence);
|
|||
|
||||
#else
|
||||
#include <io.h>
|
||||
#ifndef SEEK_SET
|
||||
#define SEEK_SET 0
|
||||
#endif
|
||||
/* #include <stdio.h> */
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue