ICU-9286 Fix for variations in the presence of the timezone symbol on BSDs

X-SVN-Rev: 31780
This commit is contained in:
Will Mason 2012-04-26 21:45:02 +00:00
parent 15f6dfa65f
commit 989e7a4395
2 changed files with 3 additions and 1 deletions

View File

@ -116,6 +116,8 @@ typedef size_t uintptr_t;
# define U_TIMEZONE __timezone
#elif U_PLATFORM_USES_ONLY_WIN32_API
# define U_TIMEZONE _timezone
#elif U_PLATFORM == U_PF_BSD && !defined(__NetBSD__)
/* not defined */
#elif U_PLATFORM == U_PF_OS400
/* not defined */
#else

View File

@ -131,7 +131,7 @@
# include <android/api-level.h>
#elif defined(linux) || defined(__linux__) || defined(__linux)
# define U_PLATFORM U_PF_LINUX
#elif defined(BSD) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
#elif defined(BSD) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__)
# define U_PLATFORM U_PF_BSD
#elif defined(sun) || defined(__sun)
/* Check defined(__SVR4) || defined(__svr4__) to distinguish Solaris from SunOS? */