diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-04-28 10:51:12 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-04-28 10:51:12 (GMT) |
commit | bbd762f7774136b2d07b84f34dac9ef826d4445f (patch) | |
tree | 8add392ae666af35d20d1d6fc0a1ae1fc6b1515a /libtommath/tommath.h | |
parent | ba82b0c9afd6e91aa97e13a95cf1a2ee4fcd4097 (diff) | |
parent | 30592ffe7fbd37f5c96a30db0cad0fd2ea882705 (diff) | |
download | tcl-bbd762f7774136b2d07b84f34dac9ef826d4445f.zip tcl-bbd762f7774136b2d07b84f34dac9ef826d4445f.tar.gz tcl-bbd762f7774136b2d07b84f34dac9ef826d4445f.tar.bz2 |
Update libtommath to latest 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 8ccbb89..fe26962 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 |