[cxx] Fix mono-boehm to compile as C++. (mono/mono#18086)
authorJay Krell <jaykrell@microsoft.com>
Mon, 9 Dec 2019 17:59:10 +0000 (09:59 -0800)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 9 Dec 2019 17:59:10 +0000 (18:59 +0100)
commit68f4320377652474f82f4f1f34790e5f114f3f1d
tree03454d50adba97b727599cb5f813c29bf1036431
parentb2a7a37cc71cd6b9c10ad6907eddc19202cadc4e
[cxx] Fix mono-boehm to compile as C++. (mono/mono#18086)

https://jenkins.mono-project.com/job/test-mono-pull-request-i386/32263/consoleText

```
      ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
boehm-gc.c: In function 'void mono_gc_base_init()':
boehm-gc.c:202:42: error: invalid conversion from
'void (*)(size_t) {aka void (*)(unsigned int)}' to
GC_on_heap_resize_proc {aka void (*)(long unsigned int)}' [-fpermissive]
  GC_set_on_heap_resize (on_gc_heap_resize);
                                          ^
In file included from ../../mono/utils/gc_wrapper.h:44:0,
                 from ../../mono/metadata/gc-internals.h:16,
                 from boehm-gc.c:16:
../../external/bdwgc/include/gc.h:132:21: note:
 initializing argument 1 of 'void GC_set_on_heap_resize(GC_on_heap_resize_proc)'
 GC_API void GC_CALL GC_set_on_heap_resize(GC_on_heap_resize_proc);
```

Commit migrated from https://github.com/mono/mono/commit/5cbb1f4be8a0434ad92c39dfcece15f51f920e5b
src/mono/mono/metadata/boehm-gc.c