Differences From Artifact [96b5d11fcf]:
- File
src/OFThread.m
— part of check-in
[17be12b6e5]
at
2014-05-15 01:50:04
on branch trunk
— Don't define _*_SOURCE
Instead, just define _GNU_SOURCE when __GLIBC__ is defined. After all,
that's the only libc that doesn't work properly without any defines. (user: js, size: 7920) [annotate] [blame] [check-ins using]
To Artifact [57ac3c2fe7]:
- File src/OFThread.m — part of check-in [d1e559b643] at 2014-05-29 21:27:34 on branch trunk — Work around __block being used by old glibc (user: js, size: 8011) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #define __NO_EXT_QNX #include "config.h" #include <stdlib.h> #include <math.h> #include <time.h> #ifndef _WIN32 # include <unistd.h> #endif #ifdef OF_HAVE_SCHED_YIELD # include <sched.h> | > > > > > | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | #define __NO_EXT_QNX #include "config.h" #include <stdlib.h> #include <math.h> #include <time.h> /* Work around __block being used by glibc */ #ifdef __GLIBC__ # undef __USE_XOPEN #endif #ifndef _WIN32 # include <unistd.h> #endif #ifdef OF_HAVE_SCHED_YIELD # include <sched.h> |
︙ | ︙ |