mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-02 15:46:17 +01:00
be80f9a106
* README.win32: Update the pthreads snapshot version we want. Advice how to hand-expand the makefile.*.in files. * config.h.win32.in: Define values needed by Sebastian Wilhelmi's new thread stuff. * glib.def: Add new functions. * glibconfig.h.win32.in: Update the pthreads snapshot version. Fix typo. * gthread.c: Include config.h, guard inclusion of unistd.h. When using gcc on Win32, g_thread_functions_for_glib_use must be marked for export here, too. * gtimer.c: Implement g_usleep on native Win32 using Sleep (which only has millisecond granularity, though). * makefile.cygwin.in * makefile.msc.in: Update pthreads snapshot version. File name changes. Remove testgthread. * tests/makefile.cygwin.in * tests/makefile.msc.in: Add thread-test. Link with gthread lib. * gthread-posix.c: Guard pthread_attr_setscope call with test for _POSIX_THREAD_PRIORITY_SCHEDULING, which should be defined in a <pthread.h> that supports that feature.
142 lines
3.5 KiB
Plaintext
142 lines
3.5 KiB
Plaintext
/* config.h.win32. Handcrafted for Microsoft C */
|
|
|
|
/* Define to empty if the keyword does not work. */
|
|
/* #undef const */
|
|
|
|
/* Define if you don't have vprintf but do have _doprnt. */
|
|
/* #undef HAVE_DOPRNT */
|
|
|
|
/* Define if you have <unistd.h>. */
|
|
/* #undef HAVE_UNISTD_H */
|
|
|
|
/* Define if you have the vprintf function. */
|
|
#define HAVE_VPRINTF 1
|
|
|
|
/* Define if you have the ANSI C header files. */
|
|
#define STDC_HEADERS 1
|
|
|
|
/* Define if your processor stores words with the most significant
|
|
byte first (like Motorola and SPARC, unlike Intel and VAX). */
|
|
/* #undef WORDS_BIGENDIAN */
|
|
|
|
/* #undef ENABLE_MEM_CHECK */
|
|
/* #undef ENABLE_MEM_PROFILE */
|
|
|
|
#define G_COMPILED_WITH_DEBUGGING "minimum"
|
|
|
|
/* #undef HAVE_BROKEN_WCTYPE */
|
|
/* #undef HAVE_DOPRNT */
|
|
#define HAVE_FLOAT_H 1
|
|
#define HAVE_LIMITS_H 1
|
|
/* #undef HAVE_LOCALTIME_R */
|
|
/* #undef HAVE_LONG_DOUBLE */
|
|
/* #undef HAVE_POLL */
|
|
/* #undef HAVE_PWD_H */
|
|
/* #undef HAVE_SYS_PARAM_H */
|
|
/* #undef HAVE_SYS_POLL_H */
|
|
/* #undef HAVE_SYS_SELECT_H */
|
|
/* #undef HAVE_SYS_TIME_H */
|
|
/* #undef HAVE_SYS_TIMES_H */
|
|
#define HAVE_STRERROR 1
|
|
/* #undef HAVE_STRSIGNAL */
|
|
/* #undef HAVE_UNISTD_H */
|
|
/* #undef HAVE_VSNPRINTF */
|
|
/* #undef HAVE_VALUES_H */
|
|
#define HAVE_VPRINTF 1
|
|
#define HAVE_WCHAR_H 1
|
|
#define HAVE_WCTYPE_H 1
|
|
|
|
/* #undef NO_FD_SET */
|
|
/* #undef NO_SYS_ERRLIST */
|
|
#define NO_SYS_SIGLIST 1
|
|
|
|
/* #undef G_VA_COPY */
|
|
/* #undef G_VA_COPY_AS_ARRAY */
|
|
#define G_HAVE___INLINE 1
|
|
|
|
#define GLIB_MAJOR_VERSION @GLIB_MAJOR_VERSION@
|
|
#define GLIB_MINOR_VERSION @GLIB_MINOR_VERSION@
|
|
#define GLIB_MICRO_VERSION @GLIB_MICRO_VERSION@
|
|
#define GLIB_INTERFACE_AGE @GLIB_INTERFACE_AGE@
|
|
#define GLIB_BINARY_AGE @GLIB_BINARY_AGE@
|
|
|
|
#define GLIB_SIZEOF_PTHREAD_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"
|
|
|
|
/* The number of bytes in a char. */
|
|
#define SIZEOF_CHAR 1
|
|
|
|
/* The number of bytes in a int. */
|
|
#define SIZEOF_INT 4
|
|
|
|
/* The number of bytes in a long. */
|
|
#define SIZEOF_LONG 4
|
|
|
|
/* The number of bytes in a long long. */
|
|
#define SIZEOF_LONG_LONG 8
|
|
|
|
/* The number of bytes in a short. */
|
|
#define SIZEOF_SHORT 2
|
|
|
|
/* The number of bytes in a void *. */
|
|
#define SIZEOF_VOID_P 4
|
|
|
|
/* Define if you have the atexit function. */
|
|
#define HAVE_ATEXIT 1
|
|
|
|
/* Define if you have the lstat function. */
|
|
/* #undef HAVE_LSTAT */
|
|
|
|
/* Define if you have the memmove function. */
|
|
#define HAVE_MEMMOVE 1
|
|
|
|
/* Define if you have the on_exit function. */
|
|
/* #undef HAVE_ON_EXIT */
|
|
|
|
/* Define if you have the strcasecmp function. */
|
|
/* #undef HAVE_STRCASECMP ^*/
|
|
|
|
/* Define if you have the strerror function. */
|
|
#define HAVE_STRERROR 1
|
|
|
|
/* Define if you have the strsignal function. */
|
|
/* #undef HAVE_STRSIGNAL */
|
|
|
|
/* Define if you have the vsnprintf function. */
|
|
/* #undef HAVE_VSNPRINTF */
|
|
|
|
/* Define if you have the <float.h> header file. */
|
|
#define HAVE_FLOAT_H 1
|
|
|
|
/* Define if you have the <limits.h> header file. */
|
|
#define HAVE_LIMITS_H 1
|
|
|
|
/* Define if you have the <pwd.h> header file. */
|
|
/* #undef HAVE_PWD_H */
|
|
|
|
/* Define if you have the <sys/param.h> header file. */
|
|
/* #undef HAVE_SYS_PARAM_H */
|
|
|
|
/* Define if you have the <sys/select.h> header file. */
|
|
/* #undef HAVE_SYS_SELECT_H */
|
|
|
|
/* Define if you have the <sys/time.h> header file. */
|
|
/* #undef HAVE_SYS_TIME_H */
|
|
|
|
/* Define if you have the <sys/times.h> header file. */
|
|
/* #undef HAVE_SYS_TIMES_H */
|
|
|
|
/* Define if you have the <unistd.h> header file. */
|
|
/* #undef HAVE_UNISTD_H */
|
|
|
|
/* Define if you have the <values.h> header file. */
|
|
/* #undef HAVE_VALUES_H */
|
|
|
|
/* Define if you have the w library (-lw). */
|
|
/* #undef HAVE_LIBW */
|
|
|