Turbo C really wants unsigned __brklvl. Only shows up if you enable stack

checking.


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@935 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
Bart Oldeman 2004-05-11 10:57:57 +00:00
parent 8703b2574b
commit 090bd524f5
1 changed files with 3 additions and 3 deletions

View File

@ -18,12 +18,12 @@
#include <string.h>
#ifdef __TURBOC__
extern void *__brklvl;
#define sbrk(x) __brklvl
extern unsigned __brklvl;
#define sbrk(x) ((void *)__brklvl)
#define brk(newbrk) \
(((char *)(newbrk) > (char *)(&length) - 0x200) ? \
-1 : \
(__brklvl = (newbrk), 0))
(__brklvl = (unsigned)(newbrk), 0))
#endif
#ifdef __WATCOMC__