3 * UWP marshal support for Mono.
5 * Copyright 2016 Microsoft
6 * Licensed under the MIT license. See LICENSE file in the project root for full license information.
10 #include "mono/utils/mono-compiler.h"
12 #if G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT)
15 #include "mono/metadata/marshal-windows-internals.h"
18 mono_marshal_alloc_hglobal (size_t size
)
20 return HeapAlloc (GetProcessHeap (), 0, size
);
24 mono_marshal_realloc_hglobal (gpointer ptr
, size_t size
)
26 return HeapReAlloc (GetProcessHeap (), 0, ptr
, size
);
30 mono_marshal_free_hglobal (gpointer ptr
)
32 HeapFree (GetProcessHeap (), 0, ptr
);
35 #else /* G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) */
37 MONO_EMPTY_SOURCE_FILE (marshal_windows_uwp
);
38 #endif /* G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) */