From 44e4986bfedbe36d24a8d2ca658f0cc64e237e0c Mon Sep 17 00:00:00 2001 From: czurnieden Date: Fri, 7 Dec 2018 20:47:51 +0100 Subject: [PATCH] made preprocessor warning in bn_mp_set_double.c portable --- bn_mp_set_double.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bn_mp_set_double.c b/bn_mp_set_double.c index 6d84874..8a148e9 100644 --- a/bn_mp_set_double.c +++ b/bn_mp_set_double.c @@ -49,7 +49,11 @@ int mp_set_double(mp_int *a, double b) return MP_OKAY; } #else -# warning "mp_set_double implementation is only available on platforms with IEEE754 floating point format" +# ifdef _MSC_VER +# pragma message("mp_set_double implementation is only available on platforms with IEEE754 floating point format") +# else +# warning "mp_set_double implementation is only available on platforms with IEEE754 floating point format" +# endif #endif #endif