Commit 0ebc4f9268e7e687c1bda9cf886b12d84447ba14

Steffen Jaeckel 2019-06-05T09:20:25

fix MP_DEPRECATED for non-gcc, -clang or -msvc

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tommath.h b/tommath.h
index 9334eff..2905336 100644
--- a/tommath.h
+++ b/tommath.h
@@ -211,7 +211,7 @@ TOOM_SQR_CUTOFF;
 #  define MP_DEPRECATED(x) __declspec(deprecated("replaced by " #x))
 #  define MP_DEPRECATED_PRAGMA(s) __pragma(message(s))
 #else
-#  define MP_DEPRECATED
+#  define MP_DEPRECATED(s)
 #  define MP_DEPRECATED_PRAGMA(s)
 #endif