From: Sven Verdoolaege Date: Tue, 9 Mar 2010 15:49:39 +0000 (+0100) Subject: use typedef to ensure argument to mp_get_memory_functions has C linkage X-Git-Tag: isl-0.02~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d3a6d9e4c94bbed7575eb8326a40d9dd2a481554;p=platform%2Fupstream%2Fisl.git use typedef to ensure argument to mp_get_memory_functions has C linkage --- diff --git a/include/isl_int.h b/include/isl_int.h index b7c00e8..9f5958b 100644 --- a/include/isl_int.h +++ b/include/isl_int.h @@ -65,10 +65,11 @@ typedef mpz_t isl_int; #define isl_int_fdiv_q_ui(r,i,j) mpz_fdiv_q_ui(r,i,j) #define isl_int_read(r,s) mpz_set_str(r,s,10) +typedef void (*isl_int_print_gmp_free_t)(void *, size_t); #define isl_int_print(out,i,width) \ do { \ char *s; \ - void (*gmp_free) (void *, size_t); \ + isl_int_print_gmp_free_t gmp_free; \ s = mpz_get_str(0, 10, i); \ fprintf(out, "%*s", width, s); \ mp_get_memory_functions(NULL, NULL, &gmp_free); \