summaryrefslogtreecommitdiffstats
path: root/windows
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 /windows
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 'windows')
-rwxr-xr-xwindows/src/H5pubconf.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/windows/src/H5pubconf.h b/windows/src/H5pubconf.h
index 0d7fe0b..8b7330d 100755
--- a/windows/src/H5pubconf.h
+++ b/windows/src/H5pubconf.h
@@ -78,6 +78,9 @@
/* Define to 1 if you have the `BSDgettimeofday' function. */
/* #undef H5_HAVE_BSDGETTIMEOFDAY */
+/* Define if the compiler understand the __func__ keyword */
+/* #undef H5_HAVE_C99_FUNC */
+
/* Define if the function stack tracing code is to be compiled in */
/* #undef H5_HAVE_CODESTACK */