summaryrefslogtreecommitdiffstats
path: root/libtommath/tommath.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-04-28 10:58:02 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-04-28 10:58:02 (GMT)
commit2c4c86775dd5719827e342f458cbe4724a0f0b4a (patch)
tree0fddf567c23c493e9553ed32f620928983a1bda5 /libtommath/tommath.h
parent9f54abf33a1289128b25b82e8a2d53013463801e (diff)
parentbbd762f7774136b2d07b84f34dac9ef826d4445f (diff)
downloadtcl-2c4c86775dd5719827e342f458cbe4724a0f0b4a.zip
tcl-2c4c86775dd5719827e342f458cbe4724a0f0b4a.tar.gz
tcl-2c4c86775dd5719827e342f458cbe4724a0f0b4a.tar.bz2
Merge 8.6
Diffstat (limited to 'libtommath/tommath.h')
-rw-r--r--libtommath/tommath.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/libtommath/tommath.h b/libtommath/tommath.h
index 1094641..4bd8f6c 100644
--- a/libtommath/tommath.h
+++ b/libtommath/tommath.h
@@ -237,13 +237,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