diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2002-12-22 03:30:19 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2002-12-22 03:30:19 (GMT) |
commit | ca003aafc426db7b57f9c83b34f0ca3eec943816 (patch) | |
tree | e7df4b45e465ff6f1ba1a0f2090a8632b2b2533c /src/H5public.h | |
parent | 221db7cc32305ede094512fef6b3653713caede4 (diff) | |
download | hdf5-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/H5public.h')
-rw-r--r-- | src/H5public.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5public.h b/src/H5public.h index 1de03ba..a7b3286 100644 --- a/src/H5public.h +++ b/src/H5public.h @@ -66,6 +66,10 @@ #include "H5api_adpt.h" +#ifdef __cplusplus +extern "C" { +#endif + /* Version numbers */ #define H5_VERS_MAJOR 1 /* For major interface/format changes */ #define H5_VERS_MINOR 5 /* For minor interface/format changes */ @@ -174,10 +178,6 @@ typedef ssize_t hssize_t; #endif #define HADDR_MAX (HADDR_UNDEF-1) -#ifdef __cplusplus -extern "C" { -#endif - /* Functions in H5.c */ H5_DLL herr_t H5open(void); H5_DLL herr_t H5close(void); |