diff --git a/proc/alloc.h b/proc/alloc.h index 19c91d78..eedbb2ba 100644 --- a/proc/alloc.h +++ b/proc/alloc.h @@ -5,6 +5,8 @@ EXTERN_C_BEGIN +typedef void (*message_fn)(const char *__restrict, ...) __attribute__((format(printf,1,2))); + /* change xalloc_err_handler to override the default fprintf(stderr... */ extern message_fn xalloc_err_handler; diff --git a/proc/procps.h b/proc/procps.h index 375d6c69..ec746280 100644 --- a/proc/procps.h +++ b/proc/procps.h @@ -87,7 +87,4 @@ #define HIDDEN_ALIAS(x) extern __typeof(x) x##_direct __attribute__((alias(#x))) #endif - -typedef void (*message_fn)(const char *__restrict, ...) __attribute__((format(printf,1,2))); - #endif