2007-02-20 Jonathan Chambers <joncham@gmail.com>
authorJonathan Chambers <joncham@gmail.com>
Tue, 20 Feb 2007 14:30:32 +0000 (14:30 -0000)
committerJonathan Chambers <joncham@gmail.com>
Tue, 20 Feb 2007 14:30:32 +0000 (14:30 -0000)
* threads.c: Fix #ifdef for dummy_apc function for VS.

svn path=/trunk/mono/; revision=73171

mono/metadata/ChangeLog
mono/metadata/threads.c

index ebb779b1879bf905fbdd62686f83ef34d0874561..1d909e83663662ce4479ae27429af0d6c109a977 100644 (file)
@@ -1,3 +1,6 @@
+2007-02-20  Jonathan Chambers  <joncham@gmail.com>
+
+       * threads.c: Fix #ifdef for dummy_apc function for VS.
 
 Tue Feb 20 11:59:42 CET 2007 Paolo Molaro <lupus@ximian.com>
 
index 8da27bda35508ce44dafbb81c25f34762f30c451..6117cfae37666164371fa51bd7fb946e8aefaf9b 100644 (file)
@@ -1506,7 +1506,7 @@ void mono_thread_current_check_pending_interrupt ()
 int  
 mono_thread_get_abort_signal (void)
 {
-#if defined (__MINGW32__) || defined (_MSC_VER)
+#ifdef PLATFORM_WIN32
        return -1;
 #else
 #ifndef        SIGRTMIN
@@ -1528,16 +1528,16 @@ mono_thread_get_abort_signal (void)
        /* fallback to the old way */
        return SIGRTMIN;
 #endif
-#endif /*defined (__MINGW32__) || defined (_MSC_VER) */
+#endif /* PLATFORM_WIN32 */
 }
 
-#if defined (__MINGW32__) || defined (_MSC_VER)
+#ifdef PLATFORM_WIN32
 static void CALLBACK interruption_request_apc (ULONG_PTR param)
 {
        MonoException* exc = mono_thread_request_interruption (FALSE);
        if (exc) mono_raise_exception (exc);
 }
-#endif /* defined (__MINGW32__) || defined (_MSC_VER) */
+#endif /* PLATFORM_WIN32 */
 
 /*
  * signal_thread_state_change
@@ -1554,7 +1554,7 @@ static void signal_thread_state_change (MonoThread *thread)
                        mono_raise_exception (exc);
        }
 
-#if defined (__MINGW32__) || defined (_MSC_VER)
+#ifdef PLATFORM_WIN32
        QueueUserAPC ((PAPCFUNC)interruption_request_apc, thread->handle, NULL);
 #else
        /* fixme: store the state somewhere */
@@ -1563,7 +1563,7 @@ static void signal_thread_state_change (MonoThread *thread)
 #else
        pthread_kill (thread->tid, mono_thread_get_abort_signal ());
 #endif
-#endif /* defined (__MINGW32__) || defined (__MSC_VER) */
+#endif /* PLATFORM_WIN32 */
 }
 
 void
@@ -2706,8 +2706,8 @@ mono_thread_free_local_slot_values (int slot, MonoBoolean thread_local)
        }
 }
 
-#ifdef __MINGW32__
-static CALLBACK void dummy_apc (ULONG_PTR param)
+#ifdef PLATFORM_WIN32
+static void CALLBACK dummy_apc (ULONG_PTR param)
 {
 }
 #else