summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-02-07 20:09:30 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-02-07 20:09:30 (GMT)
commitb66a383c5e717a5564401411fd186d763bf0f3c2 (patch)
tree3524771c554ac4749204e1e52a75369d5830445a
parent0b327aab21bb0d3c4657e027d184b18da97ed7a5 (diff)
downloadhdf5-b66a383c5e717a5564401411fd186d763bf0f3c2.zip
hdf5-b66a383c5e717a5564401411fd186d763bf0f3c2.tar.gz
hdf5-b66a383c5e717a5564401411fd186d763bf0f3c2.tar.bz2
[svn-r8162] Purpose:
Bug fix Description: Add ifdef around most of this file, to protect it from the Intel 7.1 C compiler which seems to have bugs in its -MG flag for creating dependency information. Platforms tested: Linux IA64 (titan) too obscure to require testing on other platforms
-rw-r--r--tools/misc/pdb2hdf.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/misc/pdb2hdf.c b/tools/misc/pdb2hdf.c
index e10d406..c6a8951 100644
--- a/tools/misc/pdb2hdf.c
+++ b/tools/misc/pdb2hdf.c
@@ -25,6 +25,17 @@
#include <string.h>
#include "hdf5.h"
+
+/* Strictly speaking, the "ifdef H5_HAVE_PDB_H" is unnecessary, since this
+ * file won't be compiled unless PDB is available (see the Makefile.in for
+ * this directory, as well as the PDB detection in the main configure.in).
+ * However, the Intel C compiler, v7.1, seems to have problems generating
+ * correct dependencies with the -MG flag when include files are not found
+ * and having this ifdef here removes the PDB headers from its consideration.
+ * QAK - 2004/02/07
+ */
+#ifdef H5_HAVE_PDB_H
+
#include "pdb.h"
#include "score.h"
@@ -513,3 +524,4 @@ main(int argc, char *argv[])
}
return 0;
}
+#endif /* H5_HAVE_PDB_H */