summaryrefslogtreecommitdiffstats
path: root/src/H5config.h.in
diff options
context:
space:
mode:
authorScott Wegner <swegner@hdfgroup.org>2008-09-17 14:04:35 (GMT)
committerScott Wegner <swegner@hdfgroup.org>2008-09-17 14:04:35 (GMT)
commit036aa878b0c167e4c39a290a75b5dc241ac4f218 (patch)
tree1d1cc1def6d68befff2515ae2f7a59d540fd3093 /src/H5config.h.in
parent95149cc0957dd05585388c8d8532d84269bf0075 (diff)
downloadhdf5-036aa878b0c167e4c39a290a75b5dc241ac4f218.zip
hdf5-036aa878b0c167e4c39a290a75b5dc241ac4f218.tar.gz
hdf5-036aa878b0c167e4c39a290a75b5dc241ac4f218.tar.bz2
[svn-r15639] Purpose: Check for __func__ keyword during configure
Description: In some of the new H5EA* code, many new C99 features are being used. Most of them are portable to all compilers, but the __func__ keyword in particular isn't supported in Visual Studio on Windows. Instead, Windows defines the __FUNCTION__ keyword, which can be used as a direct substitute. We now check for the __func__ keyword during configure and define the feature flag H5_HAVE_C99_FUNC. There was previously a check for __FUNCTION__, and the feature flags H5_HAVE_FUNCTION. In H5EApkg.h, we check for the presents of each of these in order to see which to use. If neither are avaiable, fail. Tested: h5committest (kagiso, smirom, linew)
Diffstat (limited to 'src/H5config.h.in')
-rw-r--r--src/H5config.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5config.h.in b/src/H5config.h.in
index 429b613..a12f3bc 100644
--- a/src/H5config.h.in
+++ b/src/H5config.h.in
@@ -58,6 +58,9 @@
/* Define to 1 if you have the `BSDgettimeofday' function. */
#undef HAVE_BSDGETTIMEOFDAY
+/* Define if the compiler understand the __func__ keyword */
+#undef HAVE_C99_FUNC
+
/* Define if the function stack tracing code is to be compiled in */
#undef HAVE_CODESTACK