summaryrefslogtreecommitdiffstats
path: root/bin/make_vers
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-08-23 23:19:18 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-08-23 23:19:18 (GMT)
commit51073136ce409884c772b712a69f1264a50f8252 (patch)
tree6b322b9d0dedffed42a1abffb2aaef4f56cae6ea /bin/make_vers
parent14ce8811f7bf82571312163d5105852bd545fa4e (diff)
downloadhdf5-51073136ce409884c772b712a69f1264a50f8252.zip
hdf5-51073136ce409884c772b712a69f1264a50f8252.tar.gz
hdf5-51073136ce409884c772b712a69f1264a50f8252.tar.bz2
[svn-r14109] Description:
Make certain to define the API function and typedef version macros in all situations. Tested on: FreeBSD/32 6.2 (duty) Mac OS X/32 10.4.10 (amazon)
Diffstat (limited to 'bin/make_vers')
-rwxr-xr-xbin/make_vers6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/make_vers b/bin/make_vers
index b0beb7b..07b6de6 100755
--- a/bin/make_vers
+++ b/bin/make_vers
@@ -171,6 +171,9 @@ sub print_defaultapivers ($) {
# Set up default/latest version name mapping
print $fh "\n#if !defined($curr_vers_name) || $curr_vers_name == $curr_vers\n";
+ print $fh "#ifndef $curr_vers_name\n";
+ print $fh "#define $curr_vers_name $curr_vers\n";
+ print $fh "#endif /* $curr_vers_name */\n";
print $fh "#define $curr_name $curr_name$curr_vers\n";
# Print function's dependent parameter types
@@ -212,6 +215,9 @@ sub print_defaultapivers ($) {
# Set up default/latest version name mapping
print $fh "\n#if !defined($curr_vers_name) || $curr_vers_name == $curr_vers\n";
+ print $fh "#ifndef $curr_vers_name\n";
+ print $fh "#define $curr_vers_name $curr_vers\n";
+ print $fh "#endif /* $curr_vers_name */\n";
print $fh "#define ${curr_name}_t $curr_name${curr_vers}_t\n";
# Loop to print earlier version name mappings