From feec0f9c8baea2b5125483e46a3d619f11d3c3b7 Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Mon, 6 Aug 2012 23:08:59 +1000 Subject: [PATCH] hide the i_push_errorf() prototype for IMAGER_NO_CONTEXT since you end up using the i_get_context() instead of the local dIMCTX* or pIMCTX context --- imerror.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/imerror.h b/imerror.h index e4a73189..11f55ded 100644 --- a/imerror.h +++ b/imerror.h @@ -19,7 +19,9 @@ extern int i_set_errors_fatal(int new_fatal); extern i_errmsg *i_errors(void); extern void im_push_error(pIMCTX, int code, char const *msg); +#ifndef IMAGER_NO_CONTEXT extern void i_push_errorf(int code, char const *fmt, ...) I_FORMAT_ATTR(2, 3); +#endif extern void im_push_errorf(pIMCTX, int code, char const *fmt, ...) I_FORMAT_ATTR(3, 4); extern void im_push_errorvf(im_context_t ctx, int code, char const *fmt, va_list); extern void im_clear_error(pIMCTX); -- 2.39.2