mirror of https://github.com/FDOS/kernel.git
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:
parent
8703b2574b
commit
090bd524f5
|
@ -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__
|
||||
|
|
Loading…
Reference in New Issue