summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2008-10-30 20:49:08 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2008-10-30 20:49:08 (GMT)
commit528a7dd3b8ac56d61d0f82e9e90fe4ed361eebc6 (patch)
tree696e4b87a24d728a7cb164f30ad702234e15d4ab /bin
parent7ed42940d3271e7d9ed268f8837fae6187155866 (diff)
downloadhdf5-528a7dd3b8ac56d61d0f82e9e90fe4ed361eebc6.zip
hdf5-528a7dd3b8ac56d61d0f82e9e90fe4ed361eebc6.tar.gz
hdf5-528a7dd3b8ac56d61d0f82e9e90fe4ed361eebc6.tar.bz2
[svn-r16006] Modify the commit of r15943 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-xbin/make_vers9
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