From 1b671e98095da215dd63317cc9ba95c7b42c2fbf Mon Sep 17 00:00:00 2001 From: hmelder Date: Thu, 10 Oct 2024 11:37:04 +0200 Subject: [PATCH] Fix GCC compat --- Source/NSDate.m | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Source/NSDate.m b/Source/NSDate.m index 963f2d68c..c57e3e46c 100644 --- a/Source/NSDate.m +++ b/Source/NSDate.m @@ -337,7 +337,12 @@ - (id) initWithTimeIntervalSinceReferenceDate: (NSTimeInterval)secs } #endif +#if USE_SMALL_DATE == 0 + _seconds_since_ref = secs; + return self; +#else return CREATE_SMALL_DATE(secs); +#endif } - (id) initWithCoder: (NSCoder*)coder @@ -353,7 +358,12 @@ - (id) initWithCoder: (NSCoder*)coder at: &secondsSinceRef]; } +#if USE_SMALL_DATE == 0 + _seconds_since_ref = secondsSinceRef; + return self; +#else return CREATE_SMALL_DATE(secondsSinceRef); +#endif } // NSDate Hashing, Comparison and Equality