mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
thirdparty: make fontstash
and sokol
C-libraries work with Boehm-GC (#9506)
This commit is contained in:
@ -33,6 +33,14 @@ pub const (
|
||||
#flag freebsd -DSOKOL_NO_ENTRY
|
||||
#flag solaris -DSOKOL_NO_ENTRY
|
||||
// TODO end
|
||||
|
||||
$if gcboehm ? {
|
||||
#define SOKOL_MALLOC GC_MALLOC
|
||||
#define SOKOL_CALLOC(n,m) GC_MALLOC((n)*(m))
|
||||
#define SOKOL_REALLOC GC_REALLOC
|
||||
#define SOKOL_FREE GC_FREE
|
||||
}
|
||||
|
||||
#include "sokol_v.h"
|
||||
#include "sokol_app.h"
|
||||
#define SOKOL_IMPL
|
||||
|
Reference in New Issue
Block a user