define old names also for heap stuff

This commit is contained in:
mrdudz 2022-08-29 20:10:21 +02:00
parent b09024aa32
commit 145adf61ea
1 changed files with 8 additions and 1 deletions

View File

@ -43,7 +43,14 @@ extern unsigned* __heapend; /* Upper limit */
extern struct freeblock* __heapfirst; /* First free block in list */
extern struct freeblock* __heaplast; /* Last free block in list */
#if __CC65_STD__ == __CC65_STD_CC65__
/* define old name with one underscore for backwards compatibility */
#define _heaporg __heaporg
#define _heapptr __heapptr
#define _heapend __heapend
#define _heapfirst __heapfirst
#define _heaplast __heaplast
#endif
/* End of _heap.h */