mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-01 03:34:26 +02:00
Dont include ios.h
unconditionally.
The include in tz.cpp was changed to only include the ios.h header when compiling on apple platforms, as the documentation states that only the four files date.h, tz.h, tz_private.h, and tz.cpp should be required to use the time zone library. Additionally, the ios.mm file was moved to src/ since it contains C++ source code.
This commit is contained in:
committed by
Howard Hinnant
parent
637e5d8007
commit
2acf403bcd
@@ -84,10 +84,11 @@
|
||||
#endif // _WIN32
|
||||
|
||||
#include "date/tz_private.h"
|
||||
#include "date/ios.h"
|
||||
|
||||
#ifndef __APPLE__
|
||||
# define TARGET_OS_IPHONE 0
|
||||
#ifdef __APPLE__
|
||||
# include "ios.h"
|
||||
#else
|
||||
# define TARGET_OS_IPHONE 0
|
||||
#endif
|
||||
|
||||
#if USE_OS_TZDB
|
||||
|
Reference in New Issue
Block a user