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:
1 parent
637e5d8007
commit
2acf403bcd
2 files changed
+4
-3
No files matched your search
+4
-3
@@ -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