[linux-port] restore mistakenly removed sysallocs (#1433)
In rebasing the heap change, I mistakenly removed the sysallocstringlen and sysfreestring functions. This restores them.
This commit is contained in:
Родитель
c24c9de9f8
Коммит
db8e3511c5
|
@ -45,6 +45,9 @@
|
|||
#define CoTaskMemAlloc malloc
|
||||
#define CoTaskMemFree free
|
||||
|
||||
#define SysFreeString free
|
||||
#define SysAllocStringLen(ptr, size) (wchar_t*)realloc(ptr, (size + 1)*sizeof(wchar_t))
|
||||
|
||||
#define ARRAYSIZE(array) (sizeof(array) / sizeof(array[0]))
|
||||
|
||||
#define _countof(a) (sizeof(a) / sizeof(*(a)))
|
||||
|
|
Загрузка…
Ссылка в новой задаче