Miscellaneous changes while enabling iOS support

Put all of the logic for discovering iOS in one place in ios.h.

Make TAR_DEBUG configurable and default it to 0.

Various whitespace style pickiness.
This commit is contained in:
Howard Hinnant committed 2016-08-23 20:55:13 -04:00
1 parent 927fc619ef
commit 7e9d9075d9
3 files changed
+354 -312

No files matched your search

+15 -8
View File
@@ -27,16 +27,23 @@
#ifndef ios_hpp
#define ios_hpp
#include <string>
#if __APPLE__
# include <TargetConditionals.h>
# if TARGET_OS_IPHONE
# include <string>
namespace date
{
namespace iOSUtils
{
namespace date
{
namespace iOSUtils
{
std::string get_tzdata_path();
std::string get_tzdata_path();
} // namespace iOSUtils
} // namespace date
} // namespace iOSUtils
} // namespace date
# endif // TARGET_OS_IPHONE
#else // !__APPLE__
# define TARGET_OS_IPHONE 0
#endif // !__APPLE__
#endif // ios_hpp