diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2007-03-08 09:50:55 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2007-03-08 09:50:55 (GMT) |
commit | 5a4bf8171df9473047d1eda534ed9a6a4d0749d9 (patch) | |
tree | 1a793c349ab893f7db8f3374fd35cdd5bdd207fd /c++/test/tcompound.cpp | |
parent | 25bcff76811f8f038875f639688a09f641ff34ef (diff) | |
download | hdf5-5a4bf8171df9473047d1eda534ed9a6a4d0749d9.zip hdf5-5a4bf8171df9473047d1eda534ed9a6a4d0749d9.tar.gz hdf5-5a4bf8171df9473047d1eda534ed9a6a4d0749d9.tar.bz2 |
[svn-r13474] Purpose: Fixed bugs
Description:
VMS revealed a problem in calling C++ test functions from C AddTest.
Solution:
Per Quincey's suggestion, added
#ifdef __cplusplus
extern "C"
#endif
to the called C++ functions.
Platforms tested
AIX 5.1 (copper)
Linux 2.6 (kagiso)
On pending: waiting for Elena to test on VMS when she comes back.
Diffstat (limited to 'c++/test/tcompound.cpp')
-rw-r--r-- | c++/test/tcompound.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/c++/test/tcompound.cpp b/c++/test/tcompound.cpp index 54344a8..f6571b1 100644 --- a/c++/test/tcompound.cpp +++ b/c++/test/tcompound.cpp @@ -596,7 +596,7 @@ static void test_compound_6(void) buf = (unsigned char*)malloc(nelmts * MAX(sizeof(src_typ_t), sizeof(dst_typ_t))); bkg = (unsigned char*)malloc(nelmts * sizeof(dst_typ_t)); orig = (unsigned char*)malloc(nelmts * sizeof(src_typ_t)); - for (int i=0; i<nelmts; i++) { + for (i=0; i<nelmts; i++) { s_ptr = ((src_typ_t*)orig) + i; s_ptr->b = (i*8+1) & 0x7fff; s_ptr->d = (i*8+6) & 0x7fff; @@ -731,6 +731,9 @@ static void test_compound_7(void) * *------------------------------------------------------------------------- */ +#ifdef __cplusplus +extern "C" +#endif void test_compound(void) { // Output message about test being performed |