/* * marshal-windows-uwp.c: UWP marshal support for Mono. * * Copyright 2016 Microsoft * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #include #include #if G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #include #include "mono/metadata/marshal-windows-internals.h" void * mono_marshal_alloc_hglobal (size_t size) { return HeapAlloc (GetProcessHeap (), 0, size); } gpointer mono_marshal_realloc_hglobal (gpointer ptr, size_t size) { return HeapReAlloc (GetProcessHeap (), 0, ptr, size); } void mono_marshal_free_hglobal (gpointer ptr) { HeapFree (GetProcessHeap (), 0, ptr); return; } #else /* G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) */ #ifdef _MSC_VER // Quiet Visual Studio linker warning, LNK4221, in cases when this source file intentional ends up empty. void __mono_win32_marshal_windows_uwp_quiet_lnk4221(void) {} #endif #endif /* G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) */