diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2000-11-27 23:01:48 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2000-11-27 23:01:48 (GMT) |
commit | 0726621eaa2c3423c8d8969fae314af54e902604 (patch) | |
tree | 550e6ebf64bf191fdc21633ee760759b9c2f9950 /test/big.c | |
parent | e7b7e14a88f37a6d348e62abf10765059383d645 (diff) | |
download | hdf5-0726621eaa2c3423c8d8969fae314af54e902604.zip hdf5-0726621eaa2c3423c8d8969fae314af54e902604.tar.gz hdf5-0726621eaa2c3423c8d8969fae314af54e902604.tar.bz2 |
[svn-r3005] Purpose:
Backward compatibility code
Description:
Add in code to allow the library to emulate the v1.2 API and behavior.
Platforms tested:
FreeBSD 4.2 (hawkwind)
Diffstat (limited to 'test/big.c')
-rw-r--r-- | test/big.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -120,7 +120,11 @@ enough_room(hid_t fapl) for (i=0; i<NELMTS(fd); i++) fd[i] = -1; /* Get file name template */ +#ifdef H5_WANT_H5_V1_2_COMPAT + assert(H5F_LOW_FAMILY==H5Pget_driver(fapl)); +#else /* H5_WANT_H5_V1_2_COMPAT */ assert(H5FD_FAMILY==H5Pget_driver(fapl)); +#endif /* H5_WANT_H5_V1_2_COMPAT */ h5_fixname(FILENAME[0], fapl, filename, sizeof filename); /* Create files */ @@ -366,7 +370,11 @@ main (void) fapl = h5_fileaccess(); /* The file driver must be the family driver */ +#ifdef H5_WANT_H5_V1_2_COMPAT + if (H5F_LOW_FAMILY!=H5Pget_driver(fapl)) { +#else /* H5_WANT_H5_V1_2_COMPAT */ if (H5FD_FAMILY!=H5Pget_driver(fapl)) { +#endif /* H5_WANT_H5_V1_2_COMPAT */ printf("Changing file drivers to the family driver, %lu bytes each\n", (unsigned long)FAMILY_SIZE); if (H5Pset_fapl_family(fapl, FAMILY_SIZE, H5P_DEFAULT)<0) goto error; |