[PATCH xproto] Xthreads.h: Declare _Xthread_init for WIN32

Yaakov (Cygwin/X) yselkowitz at users.sourceforge.net
Thu Nov 21 18:29:15 PST 2013


From: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>

This fixes the build of libXt on *-*-mingw* with -Werror=implicit.

Signed-off-by: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
---
 Xthreads.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Xthreads.h b/Xthreads.h
index 3d44208..2027127 100644
--- a/Xthreads.h
+++ b/Xthreads.h
@@ -107,6 +107,7 @@ typedef struct {
     struct _xthread_waiter *waiters;
 } xcondition_rec;
 typedef CRITICAL_SECTION xmutex_rec;
+extern void _Xthread_init(void);
 #    define xthread_init() _Xthread_init()
 #    define xthread_self GetCurrentThreadId
 #    define xthread_fork(func,closure) { \
-- 
1.8.3.4



More information about the xorg-devel mailing list