From d08dacbecb5b01aed3d969dc4b3801595c06bf03 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Sat, 7 Feb 2004 15:09:32 -0500 Subject: [svn-r8163] 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 --- tools/misc/pdb2hdf.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 #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 */ -- cgit v0.12