builtin,thirdparty: fix compilation of libgc with -cc msvc -gc boehm (thanks to @Ekopalypse)

This commit is contained in:
Delyan Angelov 2024-08-22 18:43:45 +03:00
parent 31e698f5b5
commit 6834ccb2d5
2 changed files with 7 additions and 0 deletions

View file

@ -1,6 +1,8 @@
/* This file is installed for backward compatibility. */
#include "gc/gc.h"
#ifndef _MSC_VER
__attribute__ ((weak)) GC_API void GC_CALL GC_noop1_ptr(volatile void *p) {
GC_noop1((u64)p);
}
#endif

View file

@ -114,7 +114,12 @@ $if gcboehm_leak ? {
#flag -DGC_DEBUG=1
}
$if windows && msvc {
#flag ucrtd.lib
}
#include <gc.h>
// #include <gc/gc_mark.h>
// replacements for `malloc()/calloc()`, `realloc()` and `free()`