diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-11-06 09:29:29 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-11-06 09:29:29 (GMT) |
commit | b556c1feccfb6f7985b80cc4fc906ab529ea6f01 (patch) | |
tree | 66db9ef38b76d1ece747c6aeb3a66f3cc14a2008 /libtommath/tommath.h | |
parent | 5de6de238c22b38eeb14f95962c4cccebe7f7a51 (diff) | |
download | tcl-b556c1feccfb6f7985b80cc4fc906ab529ea6f01.zip tcl-b556c1feccfb6f7985b80cc4fc906ab529ea6f01.tar.gz tcl-b556c1feccfb6f7985b80cc4fc906ab529ea6f01.tar.bz2 |
A few post-1.2.0 commits, extracted from support/1.x branch
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 e87bb08..2c4023c 100644 --- a/libtommath/tommath.h +++ b/libtommath/tommath.h @@ -234,13 +234,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 |