mirror of https://github.com/FDOS/kernel.git
MSC/TurboC compatibility fixes (Luchezar/Bart)
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@735 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
ef3e38de7b
commit
f1f51592ba
|
@ -1,6 +1,5 @@
|
|||
|
||||
#if defined(_MSC_VER)
|
||||
#define asm __asm
|
||||
#if _MSC_VER >= 700
|
||||
#pragma warning(disable:4103)
|
||||
#endif
|
||||
|
|
|
@ -69,6 +69,9 @@ void __int__(int);
|
|||
#elif defined (_MSC_VER)
|
||||
|
||||
#define I86
|
||||
#define asm __asm
|
||||
#pragma warning(disable: 4761) /* "integral size mismatch in argument;
|
||||
conversion supplied" */
|
||||
#define CDECL _cdecl
|
||||
#define PASCAL pascal
|
||||
#define __int__(intno) asm int intno;
|
||||
|
|
|
@ -1928,7 +1928,7 @@ VOID ASMCFUNC int2F_12_handler(struct int2f12regs r)
|
|||
{
|
||||
int rel_idx = idx_to_sft_(r.bx);
|
||||
|
||||
if (rel_idx == (size_t) - 1)
|
||||
if (rel_idx == -1)
|
||||
{
|
||||
r.flags |= FLG_CARRY;
|
||||
break;
|
||||
|
|
|
@ -57,7 +57,7 @@ static BYTE *prfRcsId =
|
|||
static int buff_offset = 0;
|
||||
static char buff[MAX_BUFSIZE];
|
||||
|
||||
VOID put_console(COUNT c)
|
||||
STATIC VOID put_console(COUNT c)
|
||||
{
|
||||
if (buff_offset >= MAX_BUFSIZE)
|
||||
{
|
||||
|
@ -91,7 +91,7 @@ VOID put_console(COUNT c)
|
|||
}
|
||||
}
|
||||
#else
|
||||
VOID put_console(COUNT c)
|
||||
STATIC VOID put_console(COUNT c)
|
||||
{
|
||||
if (c == '\n')
|
||||
put_console('\r');
|
||||
|
|
|
@ -279,7 +279,6 @@ UWORD ASMCFUNC syscall_MUX14(DIRECT_IREGS);
|
|||
int CDECL printf(CONST BYTE * fmt, ...);
|
||||
int CDECL sprintf(BYTE * buff, CONST BYTE * fmt, ...);
|
||||
#endif
|
||||
VOID put_console(COUNT c);
|
||||
VOID hexd(char *title, VOID FAR * p, COUNT numBytes);
|
||||
void put_unsigned(unsigned n, int base, int width);
|
||||
void put_string(const char *s);
|
||||
|
|
Loading…
Reference in New Issue