Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / metadata / w32semaphore-win32.c
index d7c6b621a5cec0c9adbb964abe371f25c1a27c8b..ca4ec59b439a98aa00bc78b040584f9ceaea26e9 100644 (file)
@@ -1,5 +1,6 @@
-/*
- * w32semaphore-win32.c: Runtime support for managed Semaphore on Win32
+/**
+ * \file
+ * Runtime support for managed Semaphore on Win32
  *
  * Author:
  *     Ludovic Henry (luhenry@microsoft.com)
@@ -17,6 +18,7 @@ mono_w32semaphore_init (void)
 {
 }
 
+#if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT | HAVE_UWP_WINAPI_SUPPORT)
 gpointer
 ves_icall_System_Threading_Semaphore_CreateSemaphore_internal (gint32 initialCount, gint32 maximumCount, MonoString *name, gint32 *error)
 { 
@@ -28,6 +30,7 @@ ves_icall_System_Threading_Semaphore_CreateSemaphore_internal (gint32 initialCou
 
        return sem;
 }
+#endif /* G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT | HAVE_UWP_WINAPI_SUPPORT) */
 
 MonoBoolean
 ves_icall_System_Threading_Semaphore_ReleaseSemaphore_internal (gpointer handle, gint32 releaseCount, gint32 *prevcount)
@@ -45,4 +48,4 @@ ves_icall_System_Threading_Semaphore_OpenSemaphore_internal (MonoString *name, g
        *error = GetLastError ();
 
        return sem;
-}
\ No newline at end of file
+}