summaryrefslogtreecommitdiffstats
path: root/src/H5private.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-05-20 18:43:31 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-05-20 18:43:31 (GMT)
commit03ab48c9c306fee878c4f3a97f858f90c078bfdf (patch)
tree5b2feadc09e9654a47f1af5d9512482fe36327d8 /src/H5private.h
parent75494847bb75617e90edb001ff69e555532499fa (diff)
downloadhdf5-03ab48c9c306fee878c4f3a97f858f90c078bfdf.zip
hdf5-03ab48c9c306fee878c4f3a97f858f90c078bfdf.tar.gz
hdf5-03ab48c9c306fee878c4f3a97f858f90c078bfdf.tar.bz2
[svn-r5444] Purpose:
Code cleanup Description: Clean up warnings on IRIX64 6.5 (modi4) Platforms tested: IRIX64 6.5 (modi4)
Diffstat (limited to 'src/H5private.h')
-rw-r--r--src/H5private.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/H5private.h b/src/H5private.h
index 425fd32..15721db 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -411,6 +411,20 @@
#endif
/*
+ * A macro to portably increment enumerated types.
+ */
+#ifndef H5_INC_ENUM
+# define H5_INC_ENUM(TYPE,VAR) (VAR)=((TYPE)((VAR)+1))
+#endif
+
+/*
+ * A macro to portably decrement enumerated types.
+ */
+#ifndef H5_DEC_ENUM
+# define H5_DEC_ENUM(TYPE,VAR) (VAR)=((TYPE)((VAR)-1))
+#endif
+
+/*
* A macro for detecting over/under-flow when casting between types
*/
#ifndef NDEBUG