Ensure Android private functions dont show up
... for external consumers like tests Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
This commit is contained in:
1 parent
7657ad7855
commit
fca69e308d
2 files changed
+9
-4
No files matched your search
+8
-4
@@ -139,10 +139,12 @@ namespace date
|
||||
|
||||
enum class choose {earliest, latest};
|
||||
|
||||
#if defined(ANDROID) || defined(__ANDROID__)
|
||||
#if defined(BUILD_TZ_LIB)
|
||||
# if defined(ANDROID) || defined(__ANDROID__)
|
||||
struct tzdb;
|
||||
static std::unique_ptr<tzdb> init_tzdb();
|
||||
#endif // defined(ANDROID) || defined(__ANDROID__)
|
||||
# endif // defined(ANDROID) || defined(__ANDROID__)
|
||||
#endif // defined(BUILD_TZ_LIB)
|
||||
|
||||
namespace detail
|
||||
{
|
||||
@@ -827,9 +829,11 @@ public:
|
||||
#if !USE_OS_TZDB
|
||||
DATE_API void add(const std::string& s);
|
||||
#else
|
||||
#if defined(ANDROID) || defined(__ANDROID__)
|
||||
# if defined(BUILD_TZ_LIB)
|
||||
# if defined(ANDROID) || defined(__ANDROID__)
|
||||
friend std::unique_ptr<tzdb> init_tzdb();
|
||||
#endif // defined(ANDROID) || defined(__ANDROID__)
|
||||
# endif // defined(ANDROID) || defined(__ANDROID__)
|
||||
# endif // defined(BUILD_TZ_LIB)
|
||||
#endif // !USE_OS_TZDB
|
||||
|
||||
private:
|
||||
|
||||
Reference in new issue
Block a user