GlobalAlloc and LocalAlloc are windows allocators that are frequently used in some older code bases. This adds interception and tests for those allocators with similar restrictions to the HeapAlloc and RtlHeapAllocate interceptors: moveable memory is not yet supported.
patch by Brijesh Rakholiya <Brijesh.Rakholia@microsoft.com> and Ian Kronquist <Ian.Kronquist@microsoft.com>
Removing <stddef.h> here breaks building with mingw, as it's necessary for the size_t type.
If I readd it here, it builds fine for me, but I presume it's removed for a reason?
FWIW, do note that this file is named .cpp in the latest git master; it looks like this diff has been made against an older tree?
Also, it's useful if the uploaded diffs are made with extra context (diff -U999)