[MERGE #382] re-enable CustomHeap build on linux
Merge pull request #382 from bewest:wip/bewest/bug-347/build-customheap
Should help with bug #347, get CustomHeap compiling on Linux.
This compiles, but without the patch to the type of address initially, I get
the following errors compiling:
* https://gist.github.com/bewest/89a1fd7be74218a37f98
In file included from /home/bewest/src/ChakraCore/lib/Common/Memory/CustomHeap.cpp:14:
[1m/home/bewest/src/ChakraCore/lib/Common/Memory/CustomHeap.h:92:5: [0m[0;1;31merror: [0m[1munknown type name '__notnull'[0m
__field_bcount(size) char* address;
/home/bewest/src/ChakraCore/pal/inc/rt/specstrings.h:278:45: [0m[0;1;30mnote: [0mexpanded from macro '__field_bcount'[0m
#define __field_bcount(size) __notnull __byte_writableTo(size)
For some reason __notnull doesn't exist. A quick grepping through the source
reveals that it's only used here, in CustomHeap, and that the rest of the
address variables are typed with either char * or void *. There is one __in
annotation, but since I'm not sure what these do, the simplest thing for time
being is this change.