Changeset 491e80 in git


Ignore:
Timestamp:
Jul 1, 2014, 1:08:05 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b21a664aa22dc6e196223af8a74ad4885e83547c')
Children:
bba099faee3e605cb869b7542d651f11d483edca
Parents:
eeaeffb438f2f46f8d8144a5a67156e6ce51f858
Message:
porting: RHE 5
Location:
gfanlib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gfanlib/gfanlib_q.h

    reeaeffb r491e80  
    1212#include <ostream>
    1313#include "gmp.h"
    14 
    15 #if (__GNU_MP_VERSION == 4) && (__GNU_MP_VERSION_MINOR<2)
    16 extern void *  (*__gmp_allocate_func) _PROTO ((size_t));
    17 extern void *  (*__gmp_reallocate_func) _PROTO ((void *, size_t, size_t));
    18 extern void    (*__gmp_free_func) _PROTO ((void *, size_t));
    19 
    20 static inline void
    21 mp_get_memory_functions (void *(**alloc_func) (size_t),
    22                          void *(**realloc_func) (void *, size_t, size_t),
    23                          void (**free_func) (void *, size_t))
    24 {
    25   if (alloc_func != NULL)
    26     *alloc_func = __gmp_allocate_func;
    27 
    28   if (realloc_func != NULL)
    29     *realloc_func = __gmp_reallocate_func;
    30 
    31   if (free_func != NULL)
    32     *free_func = __gmp_free_func;
    33 }
    34 #endif
    3514
    3615#include "gfanlib_z.h"
  • gfanlib/gfanlib_z.h

    reeaeffb r491e80  
    1717
    1818#if (__GNU_MP_VERSION == 4) && (__GNU_MP_VERSION_MINOR<2)
    19 extern void *  (*__gmp_allocate_func) _PROTO ((size_t));
    20 extern void *  (*__gmp_reallocate_func) _PROTO ((void *, size_t, size_t));
    21 extern void    (*__gmp_free_func) _PROTO ((void *, size_t));
     19extern void *  (*__gmp_allocate_func) __GMP_PROTO ((size_t));
     20extern void *  (*__gmp_reallocate_func) __GMP_PROTO ((void *, size_t, size_t));
     21extern void    (*__gmp_free_func) __GMP_PROTO ((void *, size_t));
    2222
    2323static inline void
Note: See TracChangeset for help on using the changeset viewer.