mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-07 16:38:43 +02:00
Removed POSIX_*. Defined G_THREAD_SOURCE to "gthread-win32.c".
2001-05-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * config.h.win32.in: Removed POSIX_*. Defined G_THREAD_SOURCE to "gthread-win32.c". * glibconfig.h.win32.in: Define G_HAVE_ISO_VARARGS for gcc, don't know about MSC. Define G_THREADS_IMPL_WIN32 instead of G_THREADS_IMPL_POSIX and define the right static mutex macros and types. * build/win32/make.mingw (CXX): Removed PTHREAD defs. Added -O2 -Wall to compile flags. * gthread/gthread-impl.c (g_thread_init): Move the thread implementation initialization to before assigning GThreadFuncs, which now is just struct assigned and not memcpy'ed. Completed check for zero members of GThreadFuncs. * gthread/makefile.mingw: Don't link to pthread anymore. * gthread/gthread-win32.c: New file for native thread support for win32. Thanks to Hans Breuer <hans@breuer.org> to got me kickstarted. * gthread/Makefile.am: Also distribute gthread-win32.c.
This commit is contained in:
committed by
Sebastian Wilhelmi
parent
673e99b7f3
commit
d6ed8e36e7
@@ -66,11 +66,7 @@
|
||||
#define GLIB_SIZEOF_PTRDIFF_T 4
|
||||
#define GLIB_SIZEOF_INTMAX_T 4
|
||||
|
||||
#define POSIX_MIN_PRIORITY -2
|
||||
#define POSIX_MAX_PRIORITY 2
|
||||
#define POSIX_YIELD_FUNC Sleep(0)
|
||||
|
||||
#define G_THREAD_SOURCE "gthread-posix.c"
|
||||
#define G_THREAD_SOURCE "gthread-win32.c"
|
||||
|
||||
/* The number of bytes in a char. */
|
||||
#define SIZEOF_CHAR 1
|
||||
|
Reference in New Issue
Block a user