summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-04-13 21:17:07 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-04-13 21:17:07 +0000
commitea34a7d62ef06f0aaf59408ac9bea0028d822ad0 (patch)
tree1a70e07995302e096497cc660fbba36046a036fa
parent3e15a405cf0923cdd92138d207478f38af4526e3 (diff)
downloadmpfr-ea34a7d62ef06f0aaf59408ac9bea0028d822ad0.tar.gz
[src/mpfr-impl.h] Removed the detection of possible inconsistencies
under Unix because the tests could yield spurious errors with Cygwin32 or other similar implementations. Moreover, such tests were used for debugging purpose or to detect potential problems in the environment, thus were not really useful for the end user. They were initially added in the win-thread-safe-dll branch (r9682, following a problem found in r9680). One alternative for checking by the MPFR developers would be to output the status of some internal macros in tversion. (merged changeset r10260 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10264 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--src/mpfr-impl.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/mpfr-impl.h b/src/mpfr-impl.h
index 3cdadd04d..1999b5abc 100644
--- a/src/mpfr-impl.h
+++ b/src/mpfr-impl.h
@@ -252,19 +252,6 @@ typedef struct __gmpfr_cache_s *mpfr_cache_ptr;
# define MPFR_WIN_THREAD_SAFE_DLL 1
#endif
-/* Detect some possible inconsistencies under Unix. */
-#if defined(__unix__)
-# if defined(_WIN32)
-# error "Both __unix__ and _WIN32 are defined"
-# endif
-# if __GMP_LIBGMP_DLL
-# error "__unix__ is defined and __GMP_LIBGMP_DLL is true"
-# endif
-# if defined(MPFR_WIN_THREAD_SAFE_DLL)
-# error "Both __unix__ and MPFR_WIN_THREAD_SAFE_DLL are defined"
-# endif
-#endif
-
#if defined(__MPFR_WITHIN_MPFR) || !defined(MPFR_WIN_THREAD_SAFE_DLL)
extern MPFR_THREAD_ATTR unsigned int __gmpfr_flags;
extern MPFR_THREAD_ATTR mpfr_exp_t __gmpfr_emin;