diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2008-06-10 14:13:59 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2008-06-10 14:13:59 +0000 |
commit | bb13b553727db6a5874547c74a24b14f30658999 (patch) | |
tree | d721a8274109f469dbf699b53919d51ab2ba39c9 | |
parent | ea5ae4cf3b6d33e8b41d67d5bbf31efd5fe02199 (diff) | |
download | mpfr-bb13b553727db6a5874547c74a24b14f30658999.tar.gz |
mpfr-impl.h: generate an error (with a clear error message) with g++ and
--enable-logging since compilation fails (--enable-logging is mainly for
testing and is already incompatible with threading support anyway).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5387 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | mpfr-impl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mpfr-impl.h b/mpfr-impl.h index e5275545c..7ca2d9717 100644 --- a/mpfr-impl.h +++ b/mpfr-impl.h @@ -1281,8 +1281,8 @@ typedef struct { obtain a better error message. The real test should have been a test concerning nested functions in gcc, which are disabled by default on Darwin; but it is not possible to do that without a configure test. */ -# if !(__MPFR_GNUC(3,0) && __MPFR_GLIBC(2,0)) -# error "Logging not supported (needs GCC >= 3.0 and GNU C Library >= 2.0)." +# if defined (__cplusplus) || !(__MPFR_GNUC(3,0) && __MPFR_GLIBC(2,0)) +# error "Logging not supported (needs gcc >= 3.0 and GNU C Library >= 2.0)." # endif /* Use LOGGING */ |