- USE_SYSTEM_LOCALTIME
- USE_SYSTEM_GMTIME
- Should we use the system functions if the time is inside their range?
-*/
-#define SYSTEM_LOCALTIME_MAX LOCALTIME_MAX
-#define SYSTEM_LOCALTIME_MIN LOCALTIME_MIN
-#define SYSTEM_GMTIME_MAX GMTIME_MAX
-#define SYSTEM_GMTIME_MIN GMTIME_MIN
+#ifdef HAS_TM_TM_ZONE
+/* If glibc is defined or we are on QNX, use const.
+ * Otherwise, if we are on android, use const but
+ * not with g++.
+ */
+# if defined(__GLIBC__) || (defined(__ANDROID__) && !defined(__cplusplus)) \
+ || defined(__QNX__) || defined(__CYGWIN__)
+ const
+# endif
+ char *tm_zone;
+#endif
+};