summaryrefslogtreecommitdiffstats
path: root/src/H5Epkg.h
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2010-09-22 16:59:41 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2010-09-22 16:59:41 (GMT)
commitd354e1f750f1e7f6938f4ba291954c129a577a7d (patch)
tree759a89567fc914b85b9078af428fc774b4fd3ffa /src/H5Epkg.h
parent073aafa1e04e46ed9ef5cb8533b71a4acce4c2ff (diff)
downloadhdf5-d354e1f750f1e7f6938f4ba291954c129a577a7d.zip
hdf5-d354e1f750f1e7f6938f4ba291954c129a577a7d.tar.gz
hdf5-d354e1f750f1e7f6938f4ba291954c129a577a7d.tar.bz2
[svn-r19466] Bug fix for 1707 - My previous checkin wasn't complete. I left out the case when the
deprecated symbols were disabled. I made a different definition for H5E_auto_op_t when the deprecated symbols were disabled. Tested on jam - a simple change.
Diffstat (limited to 'src/H5Epkg.h')
-rw-r--r--src/H5Epkg.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/H5Epkg.h b/src/H5Epkg.h
index fc82502..b9688d2 100644
--- a/src/H5Epkg.h
+++ b/src/H5Epkg.h
@@ -68,12 +68,20 @@
/****************************/
/* Some syntactic sugar to make the compiler happy with two different kinds of callbacks */
+#ifndef H5_NO_DEPRECATED_SYMBOLS
typedef struct {
unsigned vers; /* Which version callback to use */
- hbool_t user_set;
+ hbool_t user_set; /* If the printing function has been set. */
H5E_auto1_t func1; /* Old-style callback, NO error stack param. */
H5E_auto2_t func2; /* New-style callback, with error stack param. */
} H5E_auto_op_t;
+#else
+typedef struct {
+ unsigned vers; /* Which version callback to use */
+ hbool_t user_set; /* If the printing function has been set. */
+ H5E_auto_t func2; /* Only the new style callback function is available. */
+} H5E_auto_op_t;
+#endif
/* Some syntactic sugar to make the compiler happy with two different kinds of callbacks */
typedef struct {