[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:
Greg Roth 2018-07-17 20:03:59 -06:00 коммит произвёл Lei Zhang
Родитель c24c9de9f8
Коммит db8e3511c5
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -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)))