]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/multiprecision/config/has_mpfr.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / multiprecision / config / has_mpfr.cpp
index 0603bc4c016cfa58b9a74a899781953ab9e66c1a..c82f28d7d521d0e7ae96390237dfec0af3d2da52 100644 (file)
 #ifdef __GNUC__
 #pragma message "__GNU_MP_VERSION=" BOOST_STRINGIZE(__GNU_MP_VERSION)
 #pragma message "__GNU_MP_VERSION_MINOR=" BOOST_STRINGIZE(__GNU_MP_VERSION_MINOR)
-#endif 
+#endif
 
 #if (__GNU_MP_VERSION < 4) || ((__GNU_MP_VERSION == 4) && (__GNU_MP_VERSION_MINOR < 2))
 #error "Incompatible GMP version"
 #endif
 
-
 int main()
 {
-   void *(*alloc_func_ptr) (size_t);
-   void *(*realloc_func_ptr) (void *, size_t, size_t);
-   void (*free_func_ptr) (void *, size_t);
+   void* (*alloc_func_ptr)(size_t);
+   void* (*realloc_func_ptr)(void*, size_t, size_t);
+   void (*free_func_ptr)(void*, size_t);
 
    mp_get_memory_functions(&alloc_func_ptr, &realloc_func_ptr, &free_func_ptr);
 
@@ -41,9 +40,8 @@ int main()
 
    mpfr_t t;
    mpfr_init2(t, 128);
-   if(t[0]._mpfr_d)
+   if (t[0]._mpfr_d)
       mpfr_clear(t);
 
    return 0;
 }
-