diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2008-10-30 19:44:06 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2008-10-30 19:44:06 (GMT) |
commit | edb9de4efc8a410b68fcc469fbeb6480eb734921 (patch) | |
tree | 1de24bcad6e7b6a5028093f93ec4406299ae6260 /bin | |
parent | f2bdeee8982b0905bafb504c41de9482e9fca31d (diff) | |
download | hdf5-edb9de4efc8a410b68fcc469fbeb6480eb734921.zip hdf5-edb9de4efc8a410b68fcc469fbeb6480eb734921.tar.gz hdf5-edb9de4efc8a410b68fcc469fbeb6480eb734921.tar.bz2 |
[svn-r16005] Modify the commit of r15936 for H5_USE_16_API. Let H5version.h check if H5_USE_16_API_DEFAULT is defined by the configure. Then define H5_USE_16_API and use it throughout.
Tested on kagiso - supposed to be simple.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/make_vers | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/make_vers b/bin/make_vers index 07b6de6..2cfad4c 100755 --- a/bin/make_vers +++ b/bin/make_vers @@ -106,6 +106,15 @@ sub print_globalapivers ($) { print $fh " * API symbol, the individual API version macro takes priority.\n"; print $fh " */\n"; + for $curr_idx ($min_sup_idx .. ($max_idx - 1)) { + # Print API version ifdef + print $fh "#if defined(H5_USE_1", ($curr_idx * 2), "_API_DEFAULT) && !defined(H5_USE_1", ($curr_idx * 2), "_API)\n"; + # Print API version definition + print $fh "#define H5_USE_1", ($curr_idx * 2), "_API 1\n"; + # Print API version endif + print $fh "#endif /* H5_USE_1", ($curr_idx * 2), "_API_DEFAULT && !H5_USE_1", ($curr_idx * 2), "_API */\n\n"; + } + # Loop over supported older library APIs and define the appropriate macros for $curr_idx ($min_sup_idx .. ($max_idx - 1)) { # Print API version ifdef |