From 57ed75800a0ff96eeae1d076602b3f89740d7c8c Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 22 Sep 2000 10:29:47 -0500 Subject: [PATCH] [svn-r2586] Purpose: Bug Fix Description: The prototype for the H5Pregister function has a variable named `class'. This is a reserved word in C++ and causes the C++ compiler to freak. Solution: This variable's name was changed to cls_id in the .c file, so I changed it in the header file to cls_id to match. Platforms tested: Linux --- src/H5Ppublic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/H5Ppublic.h b/src/H5Ppublic.h index bf5b3f653d..3d2b2538f4 100644 --- a/src/H5Ppublic.h +++ b/src/H5Ppublic.h @@ -84,7 +84,7 @@ __DLL__ hid_t H5Pcreate_class(hid_t parent, const char *name, unsigned hashsize, H5P_cls_create_func_t cls_create, void *create_data, H5P_cls_close_func_t cls_close, void *close_data); __DLL__ hid_t H5Pcreate_list(hid_t cls_id); -__DLL__ herr_t H5Pregister(hid_t class, const char *name, size_t size, +__DLL__ herr_t H5Pregister(hid_t cls_id, const char *name, size_t size, void *def_value, H5P_prp_create_func_t prp_create, H5P_prp_set_func_t prp_set, H5P_prp_get_func_t prp_get, H5P_prp_close_func_t prp_close);