Differences From 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]
To Artifact [6d1066057e]:
- File src/OFDate.m — part of check-in [f178d11592] at 2014-05-15 04:06:12 on branch trunk — Remove usage of empty initializer extension (user: js, size: 12742) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
234 235 236 237 238 239 240 | - initWithDateString: (OFString*)string format: (OFString*)format { self = [super init]; @try { | | | 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 | - initWithDateString: (OFString*)string format: (OFString*)format { self = [super init]; @try { struct tm tm = { 0 }; tm.tm_isdst = -1; if (of_strptime([string UTF8String], [format UTF8String], &tm) == NULL) @throw [OFInvalidFormatException exception]; |
︙ | ︙ | |||
279 280 281 282 283 284 285 | - initWithLocalDateString: (OFString*)string format: (OFString*)format { self = [super init]; @try { | | | 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 | - initWithLocalDateString: (OFString*)string format: (OFString*)format { self = [super init]; @try { struct tm tm = { 0 }; tm.tm_isdst = -1; if (of_strptime([string UTF8String], [format UTF8String], &tm) == NULL) @throw [OFInvalidFormatException exception]; |
︙ | ︙ |