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:
Benno Evers
2018-01-03 12:05:12 +01:00
committed by Howard Hinnant
parent 637e5d8007
commit 2acf403bcd
2 changed files with 4 additions and 3 deletions

View File

@@ -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