diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2005-05-23 20:39:54 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2005-05-23 20:39:54 (GMT) |
commit | 7a9cd4ac49449056451ffeb830784508c78429d7 (patch) | |
tree | e342bfcf08c82e64d0480bfcbc878d22b67fe743 | |
parent | 5e6b5f30cf97db2f28581bd0806f13cea6e80c06 (diff) | |
download | hdf5-7a9cd4ac49449056451ffeb830784508c78429d7.zip hdf5-7a9cd4ac49449056451ffeb830784508c78429d7.tar.gz hdf5-7a9cd4ac49449056451ffeb830784508c78429d7.tar.bz2 |
[svn-r10787] Purpose:
Bug fix
Description:
Accommodate the GNU C++ compiler.
Platforms tested:
FreeBSD 4.11 (sleipnir) w/CC=g++
Not tested by h5committest
-rw-r--r-- | config/freebsd | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/freebsd b/config/freebsd index e07054e..826e09c 100644 --- a/config/freebsd +++ b/config/freebsd @@ -13,7 +13,10 @@ fi # Add "_XOPEN_SOURCE" define to cpp flags, to quiet warnings # from /usr/include/sys/cdefs.h -CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600" +# (Unless we are using g++ as a C compiler) +if test "X-g++" != "X-$CC"; then + CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600" +fi # Figure out C compiler flags . $srcdir/config/gnu-flags |