emeryberger/Heap-Layers — pull request #1 by ioprev (2012-06-27 16:47:14+00:00)
Title: Added __MALLOC_HOOK_VOLATILE macro for newer glibc versions

From GNU libc 2.14 the macro __MALLOC_HOOK_VOLATILE is defined as volatile, to declare hook variables as volatile.

This caused a compiler error:
/usr/include/malloc.h:170:38: error: ‘__malloc_initialize_hook’ has a previous declaration as ‘void (* volatile __malloc_initialize_hook)()’

So i added a check for this macro at gnuwrapper.cpp