Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / mini / mini-windows-uwp.c
1 /**
2  * \file
3  * UWP profiler stat support for Mono.
4  *
5  * Copyright 2016 Microsoft
6  * Licensed under the MIT license. See LICENSE file in the project root for full license information.
7  */
8 #include <config.h>
9 #include <glib.h>
10 #include "mono/utils/mono-compiler.h"
11
12 #if G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT)
13 #include <windows.h>
14
15 void
16 mono_runtime_setup_stat_profiler (void)
17 {
18         g_unsupported_api ("OpenThread, GetThreadContext");
19         SetLastError (ERROR_NOT_SUPPORTED);
20         return;
21 }
22
23 void
24 mono_runtime_shutdown_stat_profiler (void)
25 {
26         g_unsupported_api ("OpenThread, GetThreadContext");
27         SetLastError (ERROR_NOT_SUPPORTED);
28         return;
29 }
30
31 static gboolean
32 mono_setup_thread_context(DWORD thread_id, MonoContext *mono_context)
33 {
34         memset (mono_context, 0, sizeof (MonoContext));
35         return FALSE;
36 }
37
38 #else /* G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) */
39
40 MONO_EMPTY_SOURCE_FILE (mini_windows_uwp);
41 #endif /* G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) */
42