Differences From Artifact [64b9648b5e]:
- File
src/OFDate.m
— part of check-in
[bfc762c6d8]
at
2014-02-23 18:51:54
on branch trunk
— Add missing #define _POSIX_C_SOURCE 199309L
This also removes #include <time.h> from OFHTTPClientTests, as this
would cause <time.h> to be included without _POSIX_C_SOURCE set to
199309L and thus struct timespec would be missing. (user: js, size: 12795) [annotate] [blame] [check-ins using]
To Artifact [99de8e6f4d]:
- File
src/OFDate.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: 12736) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
10 11 12 13 14 15 16 | * * Alternatively, it may be distributed under the terms of the GNU General * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ | < < < | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | * * Alternatively, it may be distributed under the terms of the GNU General * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" #include <stdint.h> #include <limits.h> #include <time.h> #include <math.h> #include <float.h> |
︙ | ︙ |