diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-04-28 10:05:31 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-04-28 10:05:31 (GMT) |
commit | 30592ffe7fbd37f5c96a30db0cad0fd2ea882705 (patch) | |
tree | acfb22ab019dda4e64789fdebffafb47ef56d37a /libtommath/tommath.h | |
parent | 539ae1750f9596b117a70a55538d786aadbfa767 (diff) | |
parent | 0ff0a94010dcb27842e2f78515d4cfd9ae70ed26 (diff) | |
download | tcl-30592ffe7fbd37f5c96a30db0cad0fd2ea882705.zip tcl-30592ffe7fbd37f5c96a30db0cad0fd2ea882705.tar.gz tcl-30592ffe7fbd37f5c96a30db0cad0fd2ea882705.tar.bz2 |
Merge libtommath
Diffstat (limited to 'libtommath/tommath.h')
-rw-r--r-- | libtommath/tommath.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/libtommath/tommath.h b/libtommath/tommath.h index d28fea4..8c418d1 100644 --- a/libtommath/tommath.h +++ b/libtommath/tommath.h @@ -236,13 +236,22 @@ TOOM_SQR_CUTOFF; #if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 405) # define MP_DEPRECATED(x) __attribute__((deprecated("replaced by " #x))) +#elif defined(_MSC_VER) && _MSC_VER >= 1500 +# define MP_DEPRECATED(x) __declspec(deprecated("replaced by " #x)) +#else +# define MP_DEPRECATED(x) +#endif + +#ifndef MP_NO_DEPRECATED_PRAGMA +#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 301) # define PRIVATE_MP_DEPRECATED_PRAGMA(s) _Pragma(#s) # define MP_DEPRECATED_PRAGMA(s) PRIVATE_MP_DEPRECATED_PRAGMA(GCC warning s) #elif defined(_MSC_VER) && _MSC_VER >= 1500 -# define MP_DEPRECATED(x) __declspec(deprecated("replaced by " #x)) # define MP_DEPRECATED_PRAGMA(s) __pragma(message(s)) -#else -# define MP_DEPRECATED(s) +#endif +#endif + +#ifndef MP_DEPRECATED_PRAGMA # define MP_DEPRECATED_PRAGMA(s) #endif |