Commit 6b0caef471a66cfccac91989d5e863ff703fe56e

czurnieden 2019-09-09T15:55:45

add message that MP-8BIT is deprecated

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/tommath.h b/tommath.h
index 8550340..58d099f 100644
--- a/tommath.h
+++ b/tommath.h
@@ -17,6 +17,14 @@
 #  include <stdio.h>
 #endif
 
+#ifdef MP_8BIT
+#  ifdef _MSC_VER
+#    pragma message("8-bit (MP_8BIT) support is deprecated and will be dropped completely in the next version.")
+#  else
+#    warning "8-bit (MP_8BIT) support is deprecated and will be dropped completely in the next version."
+#  endif
+#endif
+
 #ifdef __cplusplus
 extern "C" {
 #endif