summaryrefslogtreecommitdiffstats
path: root/src/H5private.h
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2015-10-27 15:22:09 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2015-10-27 15:22:09 (GMT)
commit3537b69b5b57ac476bec26dd84be88a7c14123b3 (patch)
tree35bc6a430ceb18e954308b6f0fb727323d931801 /src/H5private.h
parent8e179b17aadbf8e011e59224270920878499dfa1 (diff)
downloadhdf5-3537b69b5b57ac476bec26dd84be88a7c14123b3.zip
hdf5-3537b69b5b57ac476bec26dd84be88a7c14123b3.tar.gz
hdf5-3537b69b5b57ac476bec26dd84be88a7c14123b3.tar.bz2
[svn-r28236] Rework get timezone function to add another exclusion define (H5_HAVA_TM_GMTOFF).
Also needed to add prototype - followed lead of HDrand. Tested linux and windows
Diffstat (limited to 'src/H5private.h')
-rw-r--r--src/H5private.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/H5private.h b/src/H5private.h
index 26111ff..6016295 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -495,7 +495,7 @@
#endif
/* Double constant wrapper
- *
+ *
* Quiets gcc warnings from -Wunsuffixed-float-constants.
*
* This is a really annoying warning since the standard specifies that
@@ -935,6 +935,14 @@ H5_DLL int HDfprintf (FILE *stream, const char *fmt, ...);
#ifndef HDgets
#define HDgets(S) gets(S)
#endif /* HDgets */
+#ifndef H5_HAVE_TM_GMTOFF
+#ifdef H5_HAVE_TIMEZONE
+ #ifndef HDgettimezone
+ #define HDgettimezone() HDget_timezone()
+ #endif /* HDgettimezone */
+ H5_DLL int HDget_timezone(void);
+#endif /* H5_HAVE_TIMEZONE */
+#endif /* H5_HAVE_TM_GMTOFF */
#ifndef HDgettimeofday
#define HDgettimeofday(S,P) gettimeofday(S,P)
#endif /* HDgettimeofday */
@@ -2065,7 +2073,7 @@ extern hbool_t H5_MPEinit_g; /* Has the MPE Library been initialized? */
FUNC_ENTER_COMMON_NOERR(!H5_IS_API(FUNC)); \
if(H5_PKG_INIT_VAR || !H5_TERM_GLOBAL) {
-/* Use the following two macros as replacements for the FUNC_ENTER_NOAPI
+/* Use the following two macros as replacements for the FUNC_ENTER_NOAPI
* and FUNC_ENTER_NOAPI_NOINIT macros when the function needs to set
* up a metadata tag. */
#define FUNC_ENTER_NOAPI_TAG(dxpl_id, tag, err) { \