From: Chun-wei Fan Date: Wed, 21 Dec 2011 03:24:09 +0000 (+0800) Subject: glib/tests/private.c: Fix compilation on Windows X-Git-Tag: 2.31.8~80 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=76bc1ab28084dab671fed6e9f3993014e225df2c;p=platform%2Fupstream%2Fglib.git glib/tests/private.c: Fix compilation on Windows -process.h must be included for _beginthreadex -Use a cast to HANDLE on _beginthreadex to silence warnings on different types --- diff --git a/glib/tests/private.c b/glib/tests/private.c index c21aacf..cacf3f5 100644 --- a/glib/tests/private.c +++ b/glib/tests/private.c @@ -114,6 +114,7 @@ private3_free (gpointer data) #ifdef G_OS_WIN32 #include +#include static guint __stdcall #else @@ -139,7 +140,7 @@ test_private3 (void) { HANDLE thread; guint ignore; - thread = _beginthreadex (NULL, 0, private3_func, NULL, 0, &ignore); + thread = (HANDLE) _beginthreadex (NULL, 0, private3_func, NULL, 0, &ignore); WaitForSingleObject (thread, INFINITE); CloseHandle (thread); }