summaryrefslogtreecommitdiffstats
path: root/src/H5Ppublic.h
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2002-12-22 03:30:19 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2002-12-22 03:30:19 (GMT)
commitca003aafc426db7b57f9c83b34f0ca3eec943816 (patch)
treee7df4b45e465ff6f1ba1a0f2090a8632b2b2533c /src/H5Ppublic.h
parent221db7cc32305ede094512fef6b3653713caede4 (diff)
downloadhdf5-ca003aafc426db7b57f9c83b34f0ca3eec943816.zip
hdf5-ca003aafc426db7b57f9c83b34f0ca3eec943816.tar.gz
hdf5-ca003aafc426db7b57f9c83b34f0ca3eec943816.tar.bz2
[svn-r6223] Purpose:
Bug fix - informed by Kent Description: Some identifiers were flagged as unresolved symbols when building with c++ on Windows. The reason is the name of these identifiers were changed by the c++ compiler, also called name mangling. Solution: Moved #ifdef __cplusplus extern "C" { #endif to include the offending identifiers so the c++ compiler will take them as is. Platforms: SunOS 5.7 (arabica) Linux 6.2 (eirene) Windows 2000
Diffstat (limited to 'src/H5Ppublic.h')
-rw-r--r--src/H5Ppublic.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5Ppublic.h b/src/H5Ppublic.h
index e1a6cf1..615967c 100644
--- a/src/H5Ppublic.h
+++ b/src/H5Ppublic.h
@@ -67,6 +67,10 @@ typedef herr_t (*H5P_prp_close_func_t)(const char *name, size_t size, void *valu
/* Define property list iteration function type */
typedef herr_t (*H5P_iterate_t)(hid_t id, const char *name, void *iter_data);
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* The library created property list classes
*/
@@ -108,10 +112,6 @@ H5_DLLVAR hid_t H5P_LST_MOUNT_g;
/* Default hash table size */
#define H5P_DEFAULT_HASH_SIZE 17
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/* Public functions */
H5_DLL hid_t H5Pcreate_class(hid_t parent, const char *name, unsigned hashsize,
H5P_cls_create_func_t cls_create, void *create_data,