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