summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2004-11-08 17:59:59 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2004-11-08 17:59:59 (GMT)
commitd28d9e24e953d284592726fe6c59c72ff2f27cb2 (patch)
tree43a2d4e7f9235c143ee0382fe3dcfc0a932e514a
parentce64c1340923f3b1fb8144b3a93aaf36cb65e123 (diff)
downloadhdf5-d28d9e24e953d284592726fe6c59c72ff2f27cb2.zip
hdf5-d28d9e24e953d284592726fe6c59c72ff2f27cb2.tar.gz
hdf5-d28d9e24e953d284592726fe6c59c72ff2f27cb2.tar.bz2
[svn-r9515] Purpose: Bug fix
Description: For Intel 8.1 compiler, C99 standard has to be enabled to define macro ULLONG_MAX in its own header file limits.h. Solution: Add flag -std=c99 to Intel compiler if the version is 8.1. Platforms tested: Tested v1.6 because this is a very simple change.
-rw-r--r--config/intel-flags13
1 files changed, 13 insertions, 0 deletions
diff --git a/config/intel-flags b/config/intel-flags
index f5e0348..b67bcd2 100644
--- a/config/intel-flags
+++ b/config/intel-flags
@@ -73,6 +73,19 @@ if test "X-icc" = "X-$cc_vendor"; then
fi
+# Version specific ICC flags
+#
+# Please follow the pattern below by adding new versions at the top, copying
+# the information from the previous version and adding modifications to that.
+case "$cc_vendor-$cc_version" in
+ icc-8.1*)
+ # Add C99 standard flag to enable definition of ULLONG_MAX because in Intel
+ # compiler header file limits.h, C99 has to be enable to define this macro.
+ # Compilers of Version 8 and before don't have this problem.
+ CFLAGS="$CFLAGS -std=c99"
+ ;;
+esac
+
# Clear cc info if no flags set
if test "X-$cc_flags_set" = "X-"; then
cc_vendor=